优化登录

This commit is contained in:
季圣华
2021-06-23 22:42:17 +08:00
parent 4b59703bb6
commit 14427ddc53

View File

@@ -107,8 +107,7 @@ public class UserController {
case ExceptionCodeConstants.UserExceptionCode.USER_ACCESS_EXCEPTION: case ExceptionCodeConstants.UserExceptionCode.USER_ACCESS_EXCEPTION:
msgTip = "access service error"; msgTip = "access service error";
break; break;
default: case ExceptionCodeConstants.UserExceptionCode.USER_CONDITION_FIT:
try {
msgTip = "user can login"; msgTip = "user can login";
//验证通过 可以登录放入session记录登录日志 //验证通过 可以登录放入session记录登录日志
user = userService.getUserByLoginName(loginName); user = userService.getUserByLoginName(loginName);
@@ -129,10 +128,8 @@ public class UserController {
} }
} }
} }
} catch (Exception e) { break;
e.printStackTrace(); default:
logger.error(">>>>>>>>>>>>>>>查询用户名为:" + loginName + " ,用户信息异常", e);
}
break; break;
} }
Map<String, Object> data = new HashMap<String, Object>(); Map<String, Object> data = new HashMap<String, Object>();