Commit 14427ddc authored by 季圣华's avatar 季圣华
Browse files

优化登录

parent 4b59703b
......@@ -107,8 +107,7 @@ public class UserController {
case ExceptionCodeConstants.UserExceptionCode.USER_ACCESS_EXCEPTION:
msgTip = "access service error";
break;
default:
try {
case ExceptionCodeConstants.UserExceptionCode.USER_CONDITION_FIT:
msgTip = "user can login";
//验证通过 ,可以登录,放入session,记录登录日志
user = userService.getUserByLoginName(loginName);
......@@ -129,10 +128,8 @@ public class UserController {
}
}
}
} catch (Exception e) {
e.printStackTrace();
logger.error(">>>>>>>>>>>>>>>查询用户名为:" + loginName + " ,用户信息异常", e);
}
break;
default:
break;
}
Map<String, Object> data = new HashMap<String, Object>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment