修改网关配置

This commit is contained in:
2025-08-21 09:27:08 +08:00
parent e87648e602
commit 6f044e125a
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,9 @@ public class CustomRouteConfig {
.route("sczx-order", r -> r.path("/zc/order/**")
.filters(f -> f.rewritePath("/zc/order/(?<segment>.*)", "/${segment}"))
.uri(uriWithCustomLoadBalance("sczx-order")))
.route("sczx-sync", r -> r.path("/zc/sync/**")
.filters(f -> f.rewritePath("/zc/sync/(?<segment>.*)", "/${segment}"))
.uri(uriWithCustomLoadBalance("sczx-sync")))
.build();
// .route("sczx_user", r -> r.path("/zc/user/**")
// .uri("lb://sczx_user"))

View File

@ -36,8 +36,11 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
//首页查询门店
"/zc/store/client/listStoresByBBoxWithDistance",
"/zc/store/oss/**",
"/zc/store/pub/**",
//查询车型
"/zc/car/carModel/pageStoreCarModel",
//同步服务都放行
"/zc/sync/**",
// Swagger 放行