瀏覽代碼

token延长

孙永军 1 年之前
父節點
當前提交
fa5b80e452
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/sxtvs/open/core/conf/Constant.java

+ 2 - 2
src/main/java/com/sxtvs/open/core/conf/Constant.java

@@ -9,10 +9,10 @@ public class Constant {
     public static final int TOKEN_EXPIRE_ERROR = 401;
 
     //access_token 过期时间为7天 单位是秒
-    public static final long ACCESS_TOKEN_EXPIRE_TIME = 7 * 24 * 60 * 60 ;
+    public static final long ACCESS_TOKEN_EXPIRE_TIME = 180 * 24 * 60 * 60 ;
 
     //refresh_token 过期时间为30天 单位是秒
-    public static final long REFRESH_TOKEN_EXPIRE_TIME = 30 * 24 * 60 * 60 ;
+    public static final long REFRESH_TOKEN_EXPIRE_TIME = 180 * 24 * 60 * 60 ;
 
     //生成的时间戳减去这个时间 不容易被破解
     public static final long SUB_TIME = 1600000000;