Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
GYJ
2025-01-08 20:03:15 +08:00

View File

@@ -109,7 +109,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
// 设置 userId 到 request 里,后续根据 userId 获取用户信息
UserEntity user = userService.selectUserById(userId);
if(user == null) {
throw new CzgException("会话失效,请重新登录");
throw new SqxException("会话失效,请重新登录", HttpStatus.UNAUTHORIZED.value());
}
if (user != null && user.getStatus().equals(0)) {
throw new CzgException("异常行为用户: {}" + user.getUserId());