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/AgingInOrOutInput/AgingInOrOutInputService.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs index 7c0c7c2..4280874 100644 --- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs +++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs @@ -45,8 +45,7 @@ } var wmsIpAddress = wmsBase + ipAddress; - var result = HttpsClient.PostAsync(wmsIpAddress, inputJson).Result; - content.OK(data: result); + var result = await HttpsClient.PostAsync(wmsIpAddress, inputJson); var respone = JsonConvert.DeserializeObject<ResponeAgingInputDto>(result.ToString()); if (!respone.Success) @@ -61,6 +60,7 @@ LogFactory.GetLog("闈欑疆闄堝寲鍏ュ簱锛堟暣鎵樼洏锛�").Info(true, $"\r\r--------------------------------------"); LogFactory.GetLog("闈欑疆闄堝寲鍏ュ簱锛堟暣鎵樼洏锛�").Info(true, input.TrayBarcode); LogFactory.GetLog("闈欑疆闄堝寲鍏ュ簱锛堟暣鎵樼洏锛�").Info(true, result); + content.OK(data: result); } catch (Exception err) { @@ -68,6 +68,7 @@ //Console.WriteLine(err.Message.ToString()); LogFactory.GetLog("闈欑疆闄堝寲鍏ュ簱锛堟暣鎵樼洏锛�").Error(true, $"\r\r--------------------------------------"); LogFactory.GetLog("闈欑疆闄堝寲鍏ュ簱锛堟暣鎵樼洏锛�").Error(true, err.StackTrace); + content.Error(err.Message); } return content; } @@ -95,7 +96,7 @@ } var wmsIpAddress = wmsBase + ipAddress; - var result = HttpsClient.PostAsync(wmsIpAddress, inputJson).Result; + var result = await HttpsClient.PostAsync(wmsIpAddress, inputJson); var respone = JsonConvert.DeserializeObject<ResponeAgingInputDto>(result.ToString()); if (!respone.Success) -- Gitblit v1.9.3