|
|
|
@ -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)
|
|
|
|
|
//{
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(res))
|
|
|
|
|
{
|
|
|
|
|
//var userResult = await res.Content.ReadAsStringAsync();
|
|
|
|
|
|
|
|
|
|
//_logger.LogInformation("对应请求报文 userResult={userResult}", userResult);
|
|
|
|
|
|
|
|
|
|
// model = JSON.Deserialize<TaskManageExcuteResultDto>(userResult);
|
|
|
|
|
//}
|
|
|
|
|
model = JsonConvert.DeserializeObject<TaskManageExcuteResultDto>(res);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|