This commit is contained in:
xiaolipro 2026-01-14 17:08:32 +08:00
parent 54c7a0e1e2
commit c620256082

View File

@ -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
};
}
}