|
|
@ -74,12 +74,12 @@ public class MobileAuthorizationController { |
|
|
|
if (!userInfo.getIs_used()) { |
|
|
|
throw new BadRequestException("账号未激活"); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(authUser.getRegin_code())){ |
|
|
|
if (StringUtils.isNotEmpty(authUser.getDevice())){ |
|
|
|
Object regin_code = redisUtils.get("JT_"+authUser.getUsername()); |
|
|
|
if (regin_code!=null){ |
|
|
|
throw new BadRequestException("当前设备工序已经登陆,无法继续选择"); |
|
|
|
}else { |
|
|
|
redisUtils.set("JT_"+authUser.getUsername(),authUser.getRegin_code()); |
|
|
|
redisUtils.set("JT_"+authUser.getUsername(),authUser.getDevice()); |
|
|
|
} |
|
|
|
} |
|
|
|
// 登录输入,登出删除
|
|
|
|