From f1d726e3de8f15cdfe30d4ca5fbba733d73a1e56 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期六, 17 一月 2026 09:58:33 +0800
Subject: [PATCH] 同步
---
项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs"
index 6f43342..15cd077 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/issuedCharacter.cs"
@@ -21,13 +21,6 @@
/// </summary>
public partial class MESService
{
- /// <summary>
- /// BDC璇锋眰鐒婅鐗瑰緛淇℃伅
- /// </summary>
- /// <param name="rfidPrint">RFID</param>
- /// <param name="vin">VIN鍙�</param>
- /// <param name="stationNo">绔欏彴璇锋眰鐐逛綅</param>
- /// <returns></returns>
public WebResponseContent issuedCharacter(string rfidPrint, string vin, string stationNo)
{
WebResponseContent content = new WebResponseContent();
@@ -35,7 +28,7 @@
{
IssuedCharacterInfo characterInfo = new IssuedCharacterInfo()
{
- plantCode = "1022",
+ plantCode = "1052",
rfidPrint = rfidPrint,
vin = vin,
messageTime = DateTime.Now
@@ -50,7 +43,7 @@
}
var wmsIpAddress = wmsBase + ipAddress;
- var MESrespon = HttpHelper.Post(wmsIpAddress, characterInfo.ToJson());
+ var MESrespon = HttpHelper.PostAsync(wmsIpAddress, characterInfo.ToJson()).Result;
IssuedCharacterRespon characterRespon = JsonConvert.DeserializeObject<IssuedCharacterRespon>(MESrespon);
if (!characterRespon.success)
@@ -70,10 +63,16 @@
};
_carBodyRepository.AddData(CarBody);
+
+ LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"\r\r--------------------------------------");
+ LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"宸ヤ綅鍙�:{stationNo},RFID:{rfidPrint}");
+
+
return content;
}
catch (Exception ex)
{
+ LogFactory.GetLog("璇锋眰鐒婅鐗瑰緛淇℃伅").Info(true, $"璇锋眰鐒婅鐗瑰緛淇℃伅寮傚父锛�:{ex.Message}");
return content.Error($"璇锋眰鐒婅鐗瑰緛淇℃伅寮傚父锛�:{ex.Message}");
}
}
--
Gitblit v1.9.3