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