未登录首页异常

This commit is contained in:
谭凯凯
2025-01-08 20:01:32 +08:00
committed by Tankaikai
parent bd8b327466
commit 03df4a740b

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("会话失效,请重新登录");
}
if (user != null && user.getStatus().equals(0)) {
throw new CzgException("异常行为用户: {}" + user.getUserId());