Commit 8b4c148b authored by zhouxudong's avatar zhouxudong

处理token

parent e878c459
......@@ -32,7 +32,7 @@ public class CurrentUserInterceptor implements AsyncHandlerInterceptor {
JwtInfo jwtUser = JwtTokenUtil.getJwtUser(token);
Object redisToken = RedisUtil.get(RedisConstants.token + jwtUser.getPhone());
if(ObjectUtils.isEmpty(redisToken)){
if(ObjectUtils.isEmpty(redisToken)||!token.equals(redisToken)){
throw new AuthException("当前会话失效,请重新登录");
}
//判断是否续期
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment