Selaa lähdekoodia

token改造(完成)

xie.bx 2 vuotta sitten
vanhempi
commit
0cd655528f

+ 1 - 0
im-platform/src/main/java/com/bx/implatform/interceptor/AuthInterceptor.java

@@ -36,6 +36,7 @@ public class AuthInterceptor implements HandlerInterceptor {
             JwtUtil.checkSign(token, Constant.ACCESS_TOKEN_SECRET);
         }catch (
         JWTVerificationException e) {
+            log.error("token已失效,url:{}",request.getRequestURI());
             throw new GlobalException(ResultCode.INVALID_TOKEN);
         }
         // 存放session