From 8bafc724a412aa3250cf55e48fd5caa935dba1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 24 Feb 2026 11:24:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E6=B7=BB=E5=8A=A0API=E7=BD=91?= =?UTF-8?q?=E5=85=B3=E9=85=8D=E7=BD=AE=E5=B9=B6=E6=9B=B4=E6=96=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=80=9A=E7=9F=A5URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在配置属性中新增apiUrl字段用于API网关地址 - 为开发、测试、生产环境配置文件添加api-url配置项 - 更新商城订单服务中的通知URL使用API网关地址 - 修改默认订单通知URL和微信支付通知URL的获取逻辑 - 保留server-url作为基础模块接口,api-url作为业务模块接口 - 实现基础模块和业务模块接口分离的架构设计 --- .../com/gxwebsoft/common/core/config/ConfigProperties.java | 5 +++++ .../gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java | 4 ++-- src/main/resources/application-dev.yml | 4 +++- src/main/resources/application-glt.yml | 2 ++ src/main/resources/application-prod.yml | 4 +++- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gxwebsoft/common/core/config/ConfigProperties.java b/src/main/java/com/gxwebsoft/common/core/config/ConfigProperties.java index d500177..ed254a3 100644 --- a/src/main/java/com/gxwebsoft/common/core/config/ConfigProperties.java +++ b/src/main/java/com/gxwebsoft/common/core/config/ConfigProperties.java @@ -92,6 +92,11 @@ public class ConfigProperties { */ private String serverUrl; + /** + * API网关地址 + */ + private String apiUrl; + /** * 阿里云存储 OSS * Endpoint diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java index cf2f643..5a4a292 100644 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java +++ b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java @@ -189,7 +189,7 @@ public class ShopOrderServiceImpl extends ServiceImpl