append
This commit is contained in:
parent
54c7a0e1e2
commit
c620256082
@ -115,8 +115,8 @@ public class InterfaceForwardService : ApplicationService
|
|||||||
[FromQuery] [Required] string standardCode,
|
[FromQuery] [Required] string standardCode,
|
||||||
[FromQuery] [Required] string supplierCode,
|
[FromQuery] [Required] string supplierCode,
|
||||||
[FromBody] [Required] object data,
|
[FromBody] [Required] object data,
|
||||||
[FromHeader] string? attach = null,
|
[FromHeader] string? other = null,
|
||||||
[FromHeader] bool isReturnMessage = false,
|
[FromHeader] bool sourceData = false,
|
||||||
[FromHeader] string? failedSubscribeName = null)
|
[FromHeader] string? failedSubscribeName = null)
|
||||||
{
|
{
|
||||||
if (JToken.FromObject(data) is not JObject jobject)
|
if (JToken.FromObject(data) is not JObject jobject)
|
||||||
@ -141,8 +141,8 @@ public class InterfaceForwardService : ApplicationService
|
|||||||
return new InterfaceRelayUnifyResultDto(true, res)
|
return new InterfaceRelayUnifyResultDto(true, res)
|
||||||
{
|
{
|
||||||
RqId = context.ServiceProviderRequestLog.RequestId,
|
RqId = context.ServiceProviderRequestLog.RequestId,
|
||||||
SourceData = isReturnMessage ? context.ServiceProviderRequestLog.Response : null,
|
SourceData = sourceData ? context.ServiceProviderRequestLog.Response : null,
|
||||||
Other = attach
|
Other = other
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,8 +152,8 @@ public class InterfaceForwardService : ApplicationService
|
|||||||
[FromQuery] [Required] string supplierCode,
|
[FromQuery] [Required] string supplierCode,
|
||||||
[FromHeader] [Required] Guid requestId,
|
[FromHeader] [Required] Guid requestId,
|
||||||
[FromBody] [Required] object data,
|
[FromBody] [Required] object data,
|
||||||
[FromHeader] string? attach = null,
|
[FromHeader] string? other = null,
|
||||||
[FromHeader] bool isReturnMessage = false,
|
[FromHeader] bool sourceData = false,
|
||||||
[FromHeader] string? failedSubscribeName = null)
|
[FromHeader] string? failedSubscribeName = null)
|
||||||
{
|
{
|
||||||
var logs = await _logRepository.GetRequestLogsAsync(requestId);
|
var logs = await _logRepository.GetRequestLogsAsync(requestId);
|
||||||
@ -177,8 +177,8 @@ public class InterfaceForwardService : ApplicationService
|
|||||||
return new InterfaceRelayUnifyResultDto(true, res)
|
return new InterfaceRelayUnifyResultDto(true, res)
|
||||||
{
|
{
|
||||||
RqId = context.ServiceProviderRequestLog.RequestId,
|
RqId = context.ServiceProviderRequestLog.RequestId,
|
||||||
SourceData = isReturnMessage ? _logRepository.ServiceProviderRequestLog.Response : null,
|
SourceData = sourceData ? _logRepository.ServiceProviderRequestLog.Response : null,
|
||||||
Other = attach
|
Other = other
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user