Browse Source

token失效提示语

zhoutg 6 years ago
parent
commit
7d3c8a791f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      user-service/src/main/java/com/diagbot/facade/UserFacade.java

+ 1 - 2
user-service/src/main/java/com/diagbot/facade/UserFacade.java

@@ -418,8 +418,7 @@ public class UserFacade extends UserServiceImpl {
 
         //验证刷新令牌有效性
         if (!tokenFacade.verifyToken(refreshToken, 2)) {
-            throw new CommonException(CommonErrorCode.PARAM_IS_ERROR,
-                    "不是被允许的刷新令牌");
+            throw new CommonException(CommonErrorCode.TOKEN_PAST);
         }
 
         JWT jwt = authServiceClient.refreshToken("Basic dWFhLXNlcnZpY2U6MTIzNDU2", "refresh_token", refreshToken);