From af9c3ed5d036ad68faf7e18f566679b3da92d244 Mon Sep 17 00:00:00 2001 From: wanshenmean <cathay_xy@163.com> Date: 星期六, 22 三月 2025 11:36:06 +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