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) {