Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -109,7 +109,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
|
|||||||
// 设置 userId 到 request 里,后续根据 userId 获取用户信息
|
// 设置 userId 到 request 里,后续根据 userId 获取用户信息
|
||||||
UserEntity user = userService.selectUserById(userId);
|
UserEntity user = userService.selectUserById(userId);
|
||||||
if(user == null) {
|
if(user == null) {
|
||||||
throw new CzgException("会话失效,请重新登录");
|
throw new SqxException("会话失效,请重新登录", HttpStatus.UNAUTHORIZED.value());
|
||||||
}
|
}
|
||||||
if (user != null && user.getStatus().equals(0)) {
|
if (user != null && user.getStatus().equals(0)) {
|
||||||
throw new CzgException("异常行为用户: {}" + user.getUserId());
|
throw new CzgException("异常行为用户: {}" + user.getUserId());
|
||||||
|
|||||||
Reference in New Issue
Block a user