Browse Source

仅校验内容平台接口token

wangyunpeng 2 months ago
parent
commit
35a4ca32cf

+ 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)) {
             return true;
         }
+        // 仅校验内容平台接口
+        if (!uri.startsWith("/contentPlatform")) {
+            return true;
+        }
         for (String path : excludePaths) {
             if (uri.startsWith(path)) {
                 return true;