|
@@ -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;
|