Browse Source

20220331_2后端日志更新代码_后台代码增加注释

mashengyi 3 years ago
parent
commit
380fae6d9d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/main/java/com/jkcredit/invoice/credit/SimpleCORSFilter.java

+ 2 - 3
src/main/java/com/jkcredit/invoice/credit/SimpleCORSFilter.java

@@ -83,7 +83,7 @@ public class SimpleCORSFilter implements Filter {
 
 
     /**
-     * 不需要 Token 校验的接口
+     * 这些映射无需进行api/appSecret等参数校验,故过滤
      */
     private final static String[] NO_TOKEN_API_PATHS ={
             "/**/favicon.ico",
@@ -211,9 +211,8 @@ public class SimpleCORSFilter implements Filter {
             return;
         }
         /**
-         * 校验用户 Token
+         * 这些映射无需进行api/appSecret等参数校验,故过滤
          */
-
         boolean flag = (!Arrays.asList(NO_TOKEN_API_PATHS).contains(httpRequest.getRequestURI()));
         if(httpRequest.getRequestURI().contains("/user/") || "/".equals(httpRequest.getRequestURI()) || httpRequest.getRequestURI().contains("/static/") || httpRequest.getRequestURI().contains("/jkcredit/")){
             flag = false;