diff --git a/src/main/java/com/sczx/gateway/filter/AuthGlobalFilter.java b/src/main/java/com/sczx/gateway/filter/AuthGlobalFilter.java index 86182a6..bf4424b 100644 --- a/src/main/java/com/sczx/gateway/filter/AuthGlobalFilter.java +++ b/src/main/java/com/sczx/gateway/filter/AuthGlobalFilter.java @@ -29,9 +29,15 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered { // ✅ 支持通配符路径 private static final PathMatcher PATH_MATCHER = new AntPathMatcher(); private static final List ALLOW_PATH_PATTERNS = Arrays.asList( + //登录注册放行 "/zc/user/test", "/zc/user/register", "/zc/user/auth/**", + //首页查询门店 + "/zc/store/client/listStoresByBBoxWithDistance", + //查询车型 + "/zc/car/carModel/pageStoreCarModel", + // Swagger 放行 "/zc/**/swagger-ui.html",