From 6654c7a847347732a58c9625a60667fd828b7db6 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <1247017146@qq.com> Date: 星期三, 02 四月 2025 09:53:03 +0800 Subject: [PATCH] 代码更新 --- CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs index 78df137..7d38bc2 100644 --- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs +++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs @@ -57,21 +57,11 @@ } var wmsIpAddress = wmsBase + ipAddress; - var result = HttpsClient.PostAsync(wmsIpAddress, inputJson).Result; + var result = await HttpsClient.PostAsync(wmsIpAddress, inputJson); if (result != null) { content.OK(data: result); - - //var respone = JsonConvert.DeserializeObject<ResultProcessApply>(result.ToString()); - //if (!respone.Success) - //{ - // MoMErrorMsg.AddMoMErrorMsg(0, input.WipOrderNo, respone.MOMMessage, SysConfigConst.TrayCellsStatus); - //} - //else - //{ - // MoMErrorMsg.DeleteMoMErrorMsg(0, input.WipOrderNo); - //} } LogFactory.GetLog("宸ヨ壓璺嚎鐢宠").Info(true, $"\r\r--------------------------------------"); LogFactory.GetLog("宸ヨ壓璺嚎鐢宠").Info(true, result); @@ -81,6 +71,7 @@ //Console.WriteLine(ex.Message); LogFactory.GetLog("宸ヨ壓璺嚎鐢宠").Error(true, $"\r\r--------------------------------------"); LogFactory.GetLog("宸ヨ壓璺嚎鐢宠").Error(true, ex.StackTrace); + content.Error(ex.Message); } return content; } -- Gitblit v1.9.3