Browse Source

token时长调整

yangyue 1 year ago
parent
commit
8f3d717ea1

+ 1 - 1
duty-service/src/main/java/cn/com/taiji/duty/config/LoginInterceptor.java

@@ -83,7 +83,7 @@ public class LoginInterceptor extends HandlerInterceptorAdapter {
         //             , 3 * Constant.SESSIONTOKEN_NEED_LONG, TimeUnit.SECONDS);
         //     logger.info("user:" + username + "的sessionToken:" + sessionToken + "自动续签成功!");
         // }
-        stringRedisTemplate.expire(token, 7200, TimeUnit.SECONDS);
+        stringRedisTemplate.expire(token, 28800, TimeUnit.SECONDS);
         return true;
     }