From d59f2db28be9aeb4d8edc4a794d2d0bd688613de Mon Sep 17 00:00:00 2001 From: Iamasoldier <1272745473@qq.com> Date: Thu, 10 Jul 2025 12:14:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9C=AC=E5=9C=B0=E5=90=88=E5=B9=B6):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap.yml | 8 ++++---- .../WechatConfigServiceFallbackFactory.java | 17 +++++++++++++++++ .../main/resources/application-dev.properties | 1 + .../src/main/resources/bootstrap.properties | 10 +++++----- 4 files changed, 27 insertions(+), 9 deletions(-) diff --git a/zlt-business/order-center/src/main/resources/bootstrap.yml b/zlt-business/order-center/src/main/resources/bootstrap.yml index 1566517e..e780c4e4 100644 --- a/zlt-business/order-center/src/main/resources/bootstrap.yml +++ b/zlt-business/order-center/src/main/resources/bootstrap.yml @@ -4,10 +4,10 @@ server: spring: application: name: order-center - cloud: - nacos: - discovery: - ip: 81.70.164.178 +# cloud: +# nacos: +# discovery: +# ip: 81.70.164.178 # cloud: # nacos: # discovery: diff --git a/zlt-commons/zlt-wechat-common-core/src/main/java/com/central/wechat/feign/fallback/WechatConfigServiceFallbackFactory.java b/zlt-commons/zlt-wechat-common-core/src/main/java/com/central/wechat/feign/fallback/WechatConfigServiceFallbackFactory.java index e7419c71..30f87b23 100644 --- a/zlt-commons/zlt-wechat-common-core/src/main/java/com/central/wechat/feign/fallback/WechatConfigServiceFallbackFactory.java +++ b/zlt-commons/zlt-wechat-common-core/src/main/java/com/central/wechat/feign/fallback/WechatConfigServiceFallbackFactory.java @@ -5,6 +5,8 @@ import com.central.wechat.feign.WechatConfigService; import lombok.extern.slf4j.Slf4j; import org.springframework.cloud.openfeign.FallbackFactory; +import java.util.List; + /** * userService降级工场 * @@ -32,6 +34,21 @@ public class WechatConfigServiceFallbackFactory implements FallbackFactory getSubMerchantConfigs(String serviceMchId) { + return List.of(); + } + }; } diff --git a/zlt-config/src/main/resources/application-dev.properties b/zlt-config/src/main/resources/application-dev.properties index 3f87afe1..16289e44 100644 --- a/zlt-config/src/main/resources/application-dev.properties +++ b/zlt-config/src/main/resources/application-dev.properties @@ -48,6 +48,7 @@ zlt.cos.region=ap-nanjing # 数据迁移配置 zlt.storage.hot-data-days=30 zlt.storage.enable-time-window=false +zlt.migration.enable-verification: true ##### 日志链路追踪 diff --git a/zlt-config/src/main/resources/bootstrap.properties b/zlt-config/src/main/resources/bootstrap.properties index 19e3c72f..2168d2fe 100644 --- a/zlt-config/src/main/resources/bootstrap.properties +++ b/zlt-config/src/main/resources/bootstrap.properties @@ -1,13 +1,13 @@ ########################## bootstrap级别通用配置 ########################## # 默认开发环境 -spring.profiles.active=prod +spring.profiles.active=dev ##### nacos(注册中心和配置中心)地址 -spring.cloud.nacos.server-addr=81.70.164.178:8848 -#spring.cloud.nacos.server-addr=127.0.0.1:8848 +#spring.cloud.nacos.server-addr=81.70.164.178:8848 +spring.cloud.nacos.server-addr=127.0.0.1:8848 spring.cloud.nacos.username=nacos -#spring.cloud.nacos.password=nacos -spring.cloud.nacos.password=nacosGFLY +spring.cloud.nacos.password=nacos +#spring.cloud.nacos.password=nacosGFLY spring.cloud.nacos.config.file-extension=yml spring.cloud.nacos.config.shared-configs[0].data-id=common.yml spring.cloud.nacos.config.shared-configs[0].refresh=true