修改马士基API查询船期

master
jianghaiqing 7 months ago
parent c698180498
commit 6b7750bbd5

@ -176,11 +176,14 @@ namespace Myshipping.Application.Service.BookingOrder
MSKAPISearchPoint2PointScheduleResultDto resultInfo = null; MSKAPISearchPoint2PointScheduleResultDto resultInfo = null;
_logger.LogInformation($"请求MSK API查询船期请求{JSON.Serialize(queryInfo)}");
var rlt = await queryUrl.SetBody(queryInfo) var jsonBody = Newtonsoft.Json.JsonConvert.SerializeObject(queryInfo);
var rlt = await queryUrl.SetBody(jsonBody)
.PostAsStringAsync(); .PostAsStringAsync();
_logger.LogInformation($"请求MSK API查询船期请求{jsonBody}");
if (!string.IsNullOrWhiteSpace(rlt)) if (!string.IsNullOrWhiteSpace(rlt))
{ {
try try

Loading…
Cancel
Save