Commit 42025138 by WeiCong

修复由于redis用户信息丢失导致的资源访问失败问题

parent 0b420f5a
...@@ -85,6 +85,7 @@ public class TokenInterceptor implements HandlerInterceptor { ...@@ -85,6 +85,7 @@ public class TokenInterceptor implements HandlerInterceptor {
// 重新刷入登陆时间 // 重新刷入登陆时间
RedisLoginInfo nweRedisLoginInfo = new RedisLoginInfo(userId, token, NumericUtil.sessionTimeOut(), redisLoginInfo.getSysmod(), noUiRequest.getTerminalType()); RedisLoginInfo nweRedisLoginInfo = new RedisLoginInfo(userId, token, NumericUtil.sessionTimeOut(), redisLoginInfo.getSysmod(), noUiRequest.getTerminalType());
RedisUtil.set(Constants.SESSION + "." + userId + "." + terminalType, nweRedisLoginInfo); RedisUtil.set(Constants.SESSION + "." + userId + "." + terminalType, nweRedisLoginInfo);
RedisUtil.set(StringUtil.getCacheSessionId(userId),request.getSession().getId());
NoUiUtils.setLoginInfo(nweRedisLoginInfo); NoUiUtils.setLoginInfo(nweRedisLoginInfo);
return true; return true;
......
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