浏览代码

仅校验内容平台接口token

wangyunpeng 2 月之前
父节点
当前提交
35a4ca32cf
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      api-module/src/main/java/com/tzld/piaoquan/api/config/JwtInterceptor.java

+ 4 - 0
api-module/src/main/java/com/tzld/piaoquan/api/config/JwtInterceptor.java

@@ -99,6 +99,10 @@ public class JwtInterceptor implements HandlerInterceptor {
         if (SLASH.equals(uri)) {
         if (SLASH.equals(uri)) {
             return true;
             return true;
         }
         }
+        // 仅校验内容平台接口
+        if (!uri.startsWith("/contentPlatform")) {
+            return true;
+        }
         for (String path : excludePaths) {
         for (String path : excludePaths) {
             if (uri.startsWith(path)) {
             if (uri.startsWith(path)) {
                 return true;
                 return true;