From b7158b1f72b3b0c63ba13e0083d04101a8396e22 Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Wed, 14 Jan 2026 15:41:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aparams=20naming?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/InterfaceForwardService.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/InterfaceForward.Application/Services/InterfaceForwardService.cs b/src/InterfaceForward.Application/Services/InterfaceForwardService.cs index 27858ba..b0a1f4c 100644 --- a/src/InterfaceForward.Application/Services/InterfaceForwardService.cs +++ b/src/InterfaceForward.Application/Services/InterfaceForwardService.cs @@ -112,8 +112,8 @@ public class InterfaceForwardService : ApplicationService [HttpPost("Itfx/ForwardWithSubscribe")] public async Task ForwardWithSubscribeAsync( - [FromQuery] [Required] string upStreamCode, - [FromQuery] [Required] string serviceProviderCode, + [FromQuery] [Required] string standardCode, + [FromQuery] [Required] string supplierCode, [FromBody] [Required] object data, [FromHeader] string? attach = null, [FromHeader] bool isReturnMessage = false, @@ -124,14 +124,14 @@ public class InterfaceForwardService : ApplicationService throw new BusinessException(message: "非法结构,请传对象"); } - var contextList = await _forwardCommon.VerifyBusinessAndBuildForwardContexts(upStreamCode, serviceProviderCode); + var contextList = await _forwardCommon.VerifyBusinessAndBuildForwardContexts(standardCode, supplierCode); var context = contextList.First(); context.OriginalInterfaceInput = contextList.Count == 1 ? jobject : new JObject { - [upStreamCode] = jobject + [standardCode] = jobject }; var res = contextList.Count == 1 @@ -148,8 +148,8 @@ public class InterfaceForwardService : ApplicationService [HttpPost("InterfaceForward/ReForward")] public async Task ReForwardAsync( - [FromQuery] [Required] string upStreamCode, - [FromQuery] [Required] string serviceProviderCode, + [FromQuery] [Required] string standardCode, + [FromQuery] [Required] string supplierCode, [FromHeader] [Required] Guid requestId, [FromBody] [Required] object data, [FromHeader] string? attach = null, @@ -161,7 +161,7 @@ public class InterfaceForwardService : ApplicationService var failedLog = logs.FirstOrDefault(x => !x.IsSuccess); if (failedLog == default) throw new BusinessException(message: "找不到失败日志,无法重试"); - var contextList = await _forwardCommon.VerifyBusinessAndBuildForwardContexts(upStreamCode, serviceProviderCode); + var contextList = await _forwardCommon.VerifyBusinessAndBuildForwardContexts(standardCode, supplierCode); var context = contextList.First(); context.OriginalInterfaceInput = contextList.Count == 1