From 8226542ffd1dd9eff1ed76a3d4b3a3692425d6de Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Mon, 28 Sep 2026 14:33:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=209610=E9=A2=84=E6=8A=A5=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E7=BD=91=E5=85=B3=E5=9C=B0=E5=9D=80=E6=94=B9=E4=B8=BA=E5=8F=96?= =?UTF-8?q?=E8=87=AA=20api=5Fcenter=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../Services/Orders/Customs9610OrderService.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Oms.Application/Services/Orders/Customs9610OrderService.cs b/src/Oms.Application/Services/Orders/Customs9610OrderService.cs index 57b3d84..7a6a3a7 100644 --- a/src/Oms.Application/Services/Orders/Customs9610OrderService.cs +++ b/src/Oms.Application/Services/Orders/Customs9610OrderService.cs @@ -242,7 +242,7 @@ public class Customs9610OrderService : ApplicationService } /// - /// 预报下游(写死 create9610Order / BH 网关地址)。 + /// 预报下游(create9610Order / BH;网关地址取自其他配置 api_center)。 /// [HttpPost("/order/customs-9610/fetch-declaration-form-batch")] public async Task FetchDeclarationFormBatchAsync([FromBody] Customs9610IdsInput input) @@ -274,10 +274,10 @@ public class Customs9610OrderService : ApplicationService } /// - /// 写死的 9610 预报下游地址:create9610Order + supplierCode=BH。 + /// 9610 预报下游标准码 / 供应商码(网关根地址由 api_center.BaseUrl 拼装)。 /// - private const string Create9610OrderForwardUrl = - "https://api.ideship.com/itfx/InterfaceForward/ForwardWithSubscribe?standardCode=create9610Order&supplierCode=BH"; + private const string Create9610OrderStandardCode = "create9610Order"; + private const string Create9610OrderSupplierCode = "BH"; private async Task DownstreamForwardOneAsync(int id) { @@ -303,8 +303,10 @@ public class Customs9610OrderService : ApplicationService ItfxForwardResult forward; try { - forward = await ItfxForwardClient.ForwardToAbsoluteUrlAsync( - Create9610OrderForwardUrl, + // BaseUrl 来自其他配置 api_center(ItfxForwardClient 内部解析) + forward = await ItfxForwardClient.ForwardWithSubscribeAsync( + Create9610OrderStandardCode, + Create9610OrderSupplierCode, creds.AppKey, creds.AppSecret, body); @@ -322,7 +324,6 @@ public class Customs9610OrderService : ApplicationService Status = header.Status, ServiceNo = header.ServiceNo, ClientNo = header.ClientNo, - Url = Create9610OrderForwardUrl, }; }