From e376a1f56a3fcd133afc5fead8a2fbc1a499e865 Mon Sep 17 00:00:00 2001 From: xxyy <cathay_xy@163.com> Date: 星期日, 02 三月 2025 22:23:56 +0800 Subject: [PATCH] 新增异常消息处理及WMS API调用逻辑优化 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs index d4776a2..0725b0b 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs @@ -58,11 +58,20 @@ var wmsIpAddress = wmsBase + ipAddress; var result = HttpsClient.PostAsync(wmsIpAddress, inputJson).Result; - //var x = await HttpsClient.PostAsync("http://c24-cellmi3:12020/api/MachineIntegration/ProcessApply", inputJson); + if (result != null) { - //var ResultProcess = JsonConvert.DeserializeObject<ResultProcessApply>(x); 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); -- Gitblit v1.9.3