Commit 34a5bff7 by guojuxing

权限拦截代码完善

parent 53e6f9cc
......@@ -48,7 +48,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
//判断是否有权限的路径
UserDetail userDetail = UserDetailUtils.getUserDetail();
if (userDetail == null || userDetail.getUserInfo() == null) {
throw new CommonException(ErrorCode.LOGIN_INVALID.getErrorCode(), "登录信息失效,请重新登录");
throw new CommonException(ErrorCode.LOGIN_INVALID.getErrorCode(), "登录信息不存在,请登录");
}
//不需要拦截的路径
......
Markdown is supported
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