Ver Fonte

token改为90天有效

liangpeile há 1 ano atrás
pai
commit
bac36b25bd

+ 1 - 1
crmeb-admin/src/main/java/com/zbkj/admin/filter/TokenComponent.java

@@ -29,7 +29,7 @@ public class TokenComponent {
 
     // 令牌有效期(默认30分钟) todo 调试期改为5小时
 //    private static final int expireTime = 30;
-    private static final int expireTime = 7* 24 * 60;
+    private static final int expireTime = 90* 24 * 60;
 
     // Redis 存储的key
     private static final String TOKEN_REDIS = "TOKEN:ADMIN:";

+ 1 - 1
crmeb-common/src/main/java/com/zbkj/common/token/FrontTokenComponent.java

@@ -31,7 +31,7 @@ public class FrontTokenComponent {
 
     // 令牌有效期(默认30分钟) todo 调试期改为5小时
 //    private static final int expireTime = 30;
-    private static final int expireTime = 7 * 24 * 60;
+    private static final int expireTime = 90 * 24 * 60;
 
     /**
      * 删除用户身份信息