|
|
@@ -156,7 +156,7 @@ public class ShiroRealm extends AuthorizingRealm {
|
|
|
else {
|
|
|
// 设置超时时间
|
|
|
redisUtil.set(CommonConstant.PREFIX_USER_TOKEN + token, cacheToken);
|
|
|
- redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, JwtUtil.EXPIRE_TIME / 1000);
|
|
|
+ redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, JwtUtil.EXPIRE_TIME * 3 / 1000);
|
|
|
}
|
|
|
//update-end--Author:scott Date:20191005 for:解决每次请求,都重写redis中 token缓存问题
|
|
|
return true;
|