From c620256082316a61ab3842cc7168bc6c5c17e0b6 Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Wed, 14 Jan 2026 17:08:32 +0800 Subject: [PATCH] append --- .../Services/InterfaceForwardService.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/InterfaceForward.Application/Services/InterfaceForwardService.cs b/src/InterfaceForward.Application/Services/InterfaceForwardService.cs index b0a1f4c..ab7423e 100644 --- a/src/InterfaceForward.Application/Services/InterfaceForwardService.cs +++ b/src/InterfaceForward.Application/Services/InterfaceForwardService.cs @@ -115,8 +115,8 @@ public class InterfaceForwardService : ApplicationService [FromQuery] [Required] string standardCode, [FromQuery] [Required] string supplierCode, [FromBody] [Required] object data, - [FromHeader] string? attach = null, - [FromHeader] bool isReturnMessage = false, + [FromHeader] string? other = null, + [FromHeader] bool sourceData = false, [FromHeader] string? failedSubscribeName = null) { if (JToken.FromObject(data) is not JObject jobject) @@ -141,8 +141,8 @@ public class InterfaceForwardService : ApplicationService return new InterfaceRelayUnifyResultDto(true, res) { RqId = context.ServiceProviderRequestLog.RequestId, - SourceData = isReturnMessage ? context.ServiceProviderRequestLog.Response : null, - Other = attach + SourceData = sourceData ? context.ServiceProviderRequestLog.Response : null, + Other = other }; } @@ -152,8 +152,8 @@ public class InterfaceForwardService : ApplicationService [FromQuery] [Required] string supplierCode, [FromHeader] [Required] Guid requestId, [FromBody] [Required] object data, - [FromHeader] string? attach = null, - [FromHeader] bool isReturnMessage = false, + [FromHeader] string? other = null, + [FromHeader] bool sourceData = false, [FromHeader] string? failedSubscribeName = null) { var logs = await _logRepository.GetRequestLogsAsync(requestId); @@ -177,8 +177,8 @@ public class InterfaceForwardService : ApplicationService return new InterfaceRelayUnifyResultDto(true, res) { RqId = context.ServiceProviderRequestLog.RequestId, - SourceData = isReturnMessage ? _logRepository.ServiceProviderRequestLog.Response : null, - Other = attach + SourceData = sourceData ? _logRepository.ServiceProviderRequestLog.Response : null, + Other = other }; } } \ No newline at end of file