zyx 2 년 전
부모
커밋
37668613c1
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      src/main/java/com/sxtvs/open/core/advice/APIResponseAdvice.java
  2. 1 1
      src/main/java/com/sxtvs/open/core/conf/Constant.java

+ 3 - 0
src/main/java/com/sxtvs/open/core/advice/APIResponseAdvice.java

@@ -25,6 +25,9 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
 import java.lang.annotation.Annotation;
 import java.util.List;
 
+/**
+ *  这个类不要加业务逻辑
+ */
 @RestControllerAdvice
 @Slf4j
 public class APIResponseAdvice implements ResponseBodyAdvice<Object> {

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

@@ -8,7 +8,7 @@ public class Constant {
     public static final int TOKEN_EXPIRE_ERROR = 401;
 
     //access_token 过期时间为7天 单位是秒
-    public static final long ACCESS_TOKEN_EXPIRE_TIME = 730 * 24 * 60 * 60 ;
+    public static final long ACCESS_TOKEN_EXPIRE_TIME = 7 * 24 * 60 * 60 ;
 
     //refresh_token 过期时间为30天 单位是秒
     public static final long REFRESH_TOKEN_EXPIRE_TIME = 30 * 24 * 60 * 60 ;