From 6b7750bbd5fcaf71e9b8b86c52678e597e531273 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 22 Apr 2024 13:11:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A9=AC=E5=A3=AB=E5=9F=BAAP?= =?UTF-8?q?I=E6=9F=A5=E8=AF=A2=E8=88=B9=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingMSKAPIService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs index 75004f61..59a968bf 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs @@ -176,11 +176,14 @@ namespace Myshipping.Application.Service.BookingOrder 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(); + _logger.LogInformation($"请求MSK API查询船期请求,{jsonBody}"); + if (!string.IsNullOrWhiteSpace(rlt)) { try