Parcourir la source

仅校验内容平台接口token

wangyunpeng il y a 2 mois
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;