|
@@ -548,7 +548,12 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
redisUtil.del(redisKey);
|
|
redisUtil.del(redisKey);
|
|
throw new BusinessException(ResultCode.USER_NOT_LOGIN);
|
|
throw new BusinessException(ResultCode.USER_NOT_LOGIN);
|
|
}else {
|
|
}else {
|
|
- redisUtil.expire(redisKey,2 * 60 * 60);
|
|
|
|
|
|
+ String redisKeyTime = String.format(RedisKeyUtil.loginTokenTime,StpUtil.getTokenValue());
|
|
|
|
+ if(redisUtil.hasKey(redisKeyTime)){
|
|
|
|
+ redisUtil.expire(redisKey,Integer.valueOf(redisUtil.get(redisKeyTime)));
|
|
|
|
+ }else {
|
|
|
|
+ redisUtil.expire(redisKey,2 * 60 * 60);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
sysUserId = result.getId();
|
|
sysUserId = result.getId();
|
|
}
|
|
}
|