huliguo
2025-05-06 03e22f45b1b06b68a3ba8b9390e9a5f1ddda752a
src/main/java/com/cl/interceptor/JwtTokenInterceptor.java
@@ -87,13 +87,13 @@
            return true;
        }catch (ExpiredJwtException ex) {
            log.warn("JWT已过期,Token: {}", token);
            throw new LoginErrorException(MessageConstant.TOKEN_EXPIRED);
            throw new InterceptorException(MessageConstant.TOKEN_EXPIRED);
        } catch (InterceptorException ex) {
            log.warn("JWT已过期,Token: {}", token);
            throw new InterceptorException("该用户已被冻结");
            log.warn("用户被删除或已被冻结,Token: {}", token);
            throw new InterceptorException("用户被删除或已被冻结");
        }catch (Exception ex) {
            //4、不通过,响应401状态码
            throw new LoginErrorException(MessageConstant.USER_NOT_LOGIN);
            throw new InterceptorException(MessageConstant.USER_NOT_LOGIN);
        }
    }
}