|
@@ -85,6 +85,9 @@ public class TokenService
|
|
|
String uuid = (String) claims.get(Constants.LOGIN_USER_KEY);
|
|
String uuid = (String) claims.get(Constants.LOGIN_USER_KEY);
|
|
|
String userKey = getTokenKey(uuid);
|
|
String userKey = getTokenKey(uuid);
|
|
|
LoginUser user = redisCache.getCacheObject(userKey);
|
|
LoginUser user = redisCache.getCacheObject(userKey);
|
|
|
|
|
+ if(Validator.isEmpty(user)){
|
|
|
|
|
+ throw new CustomException("令牌无效");
|
|
|
|
|
+ }
|
|
|
return user;
|
|
return user;
|
|
|
}
|
|
}
|
|
|
|
|
|