|
@@ -154,11 +154,11 @@ public class UserService extends JedisUtil {
|
154
|
154
|
UserVo binduser = userMapper.getStudentByuserIdMac(userVo.getUserid(), mac);
|
155
|
155
|
if (sbindmac == 1 && N_Utils.isNotEmpty(mac)) {
|
156
|
156
|
if (N_Utils.isNotEmpty(binduser.getMac()) && !mac.equals(binduser.getMac())) {
|
157
|
|
- return new ResultVo(1, "登录失败,该账号已与其他设备关联", userVo);
|
|
157
|
+ return new ResultVo(1, "该账号已与其他设备关联", userVo);
|
158
|
158
|
} else {
|
159
|
159
|
//20211221添加注释,sql语句修改了,不绑定的情况下会出现一个mac可以绑定多个帐号,绑定情况下没问题
|
160
|
160
|
if (N_Utils.isNotEmpty(binduser.getMacname()) && !binduser.getMacname().equals(user.getLoginname())) {
|
161
|
|
- return new ResultVo(1, "登录失败,该设备已与其他账号关联", userVo);
|
|
161
|
+ return new ResultVo(1, "该设备已与其他账号关联", userVo);
|
162
|
162
|
} else {
|
163
|
163
|
return new ResultVo(0, "登录成功", userVo);
|
164
|
164
|
}
|
|
@@ -389,7 +389,6 @@ public class UserService extends JedisUtil {
|
389
|
389
|
TUserLog userLog = new TUserLog();
|
390
|
390
|
userLog.setLoginname(loginname);
|
391
|
391
|
userLog.setMac(user.getMac());
|
392
|
|
- Integer usertype = user.getUsertype();
|
393
|
392
|
UserVo userVo = null;
|
394
|
393
|
if (result.getCode() == 0) {
|
395
|
394
|
userVo = (UserVo) result.getObj();
|
|
@@ -402,7 +401,7 @@ public class UserService extends JedisUtil {
|
402
|
401
|
result.setCode(1);
|
403
|
402
|
result.setMsg("加入缓存出错!");
|
404
|
403
|
userLog.setLoginstate(2);
|
405
|
|
- userLog.setLogtxt("登录失败");
|
|
404
|
+ userLog.setLogtxt("登录失败," + result.getMsg());
|
406
|
405
|
// return result;
|
407
|
406
|
} else {
|
408
|
407
|
userLog.setLoginstate(1);
|
|
@@ -416,7 +415,11 @@ public class UserService extends JedisUtil {
|
416
|
415
|
userVo = (UserVo) result.getObj();
|
417
|
416
|
}
|
418
|
417
|
userLog.setLoginstate(2);
|
419
|
|
- userLog.setLogtxt(result.getMsg() + ",密码:" + loginpwd);
|
|
418
|
+ if(result.getMsg().contains("密码错误")){
|
|
419
|
+ userLog.setLogtxt("登录失败," + result.getMsg() + ",密码:" + loginpwd);
|
|
420
|
+ }else{
|
|
421
|
+ userLog.setLogtxt("登录失败," + result.getMsg());
|
|
422
|
+ }
|
420
|
423
|
}
|
421
|
424
|
|
422
|
425
|
//保存登录日志
|