|
|
@@ -86,7 +86,10 @@ public class TokenService
|
|
|
String userKey = getTokenKey(uuid);
|
|
|
LoginUser user = redisCache.getCacheObject(userKey);
|
|
|
if(Validator.isEmpty(user)){
|
|
|
- throw new CustomException("令牌无效");
|
|
|
+ throw new UserPasswordNotMatchException();
|
|
|
+ }
|
|
|
+ if(user==null){
|
|
|
+ throw new UserPasswordNotMatchException();
|
|
|
}
|
|
|
return user;
|
|
|
}
|