From 1924bdeca6414b6fec314c37260b44f20865d593 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期四, 22 一月 2026 20:49:05 +0800
Subject: [PATCH] 代码同步,接口更新
---
项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs"
index c0fe362..b606cbb 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs"
@@ -1,5 +1,6 @@
锘縰sing Newtonsoft.Json;
using WIDESEA_Common;
+using WIDESEA_Common.MES;
using WIDESEA_Core;
using WIDESEA_Core.Const;
using WIDESEA_Core.Helper;
@@ -20,7 +21,7 @@
{
throw new InvalidOperationException("WMS IP 鏈厤缃�");
}
- var wmsIpAddress = wmsBase + ipAddress;
+ var wmsIpAddress = wmsBase + ipAddress;
var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == stationCode);
@@ -36,12 +37,12 @@
pass_time = DateTime.Now
};
- var MESrespon = HttpHelper.Post(wmsIpAddress, passPoint.ToJson());
+ var MESrespon = HttpHelper.PostAsync(wmsIpAddress, passPoint.ToJson(), contentType, headers).Result;
- WebResponseContent responseContent = JsonConvert.DeserializeObject<WebResponseContent>(MESrespon);
- if (!responseContent.Status)
+ MesResponse responseContent = JsonConvert.DeserializeObject<MesResponse>(MESrespon.ToString());
+ if (responseContent.code != 200)
{
- throw new Exception($"杞﹁韩杩囩偣寮傚父锛歿responseContent.Message}");
+ throw new Exception($"杞﹁韩杩囩偣寮傚父锛歿responseContent.message}");
}
LogFactory.GetLog("杞﹁韩杩囩偣").Info(true, $"\r\r--------------------------------------");
@@ -51,6 +52,8 @@
}
catch (Exception ex)
{
+ LogFactory.GetLog("杞﹁韩杩囩偣").Info(true, $"\r\r--------------------------------------");
+ LogFactory.GetLog("杞﹁韩杩囩偣").Info(true, $"宸ヤ綅鍙�:{stationCode},RFID:{rfid}");
return content.Error(ex.Message);
}
}
--
Gitblit v1.9.3