From a5ca8352f035f95d23717e49b74a6c6aea8a9fc9 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <1247017146@qq.com>
Date: 星期三, 02 四月 2025 16:03:12 +0800
Subject: [PATCH] 添加MOM异常信息页面,OCV管理页面,优化WCS不能添加用户信息问题,优化分容空框回流写入线体信息失败问题

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