From 4e43403e87743597533ec35ffa79b2c65b1b472a Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 5 Aug 2024 09:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=BC=E5=BC=8F=E5=8D=95?= =?UTF-8?q?=E6=AF=94=E5=AF=B9=E6=9F=A5=E8=AF=A2=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Method/Draft/TaskDraftCompareService.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/Draft/TaskDraftCompareService.cs b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/Draft/TaskDraftCompareService.cs index ef55c5c7..8aa50e00 100644 --- a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/Draft/TaskDraftCompareService.cs +++ b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/Draft/TaskDraftCompareService.cs @@ -674,19 +674,19 @@ namespace DS.WMS.Core.TaskPlat.Method // .SetContentEncoding(Encoding.UTF8) //.PostAsync(); - //var jsonBody = JsonConvert.SerializeObject(info); - //var res = RequestHelper.Post(jsonBody, shippingOrderCompareUrl); + var jsonBody = JsonConvert.SerializeObject(info); + var res = RequestHelper.Post(jsonBody, draftResultUrl); - //Logger.Log(NLog.LogLevel.Info, "批次={no} 对应请求报文完成 res={res}", info.Head.GID, JSON.Serialize(res)); + Logger.Log(NLog.LogLevel.Info, "批次={no} 对应请求报文完成 res={res}", info.Head.GID, res); - //if (res.StatusCode == System.Net.HttpStatusCode.OK) - //{ - // var userResult = await res.Content.ReadAsStringAsync(); + if (!string.IsNullOrWhiteSpace(res)) + { + //var userResult = await res.Content.ReadAsStringAsync(); - // _logger.LogInformation("对应请求报文 userResult={userResult}", userResult); + //_logger.LogInformation("对应请求报文 userResult={userResult}", userResult); - // model = JSON.Deserialize(userResult); - //} + model = JsonConvert.DeserializeObject(res); + } } catch (Exception ex) {