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/getCharacteristic.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/getCharacteristic.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/getCharacteristic.cs"
index 4bb12f5..b6143a9 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/getCharacteristic.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/getCharacteristic.cs"
@@ -28,7 +28,7 @@
         /// <param name="rfidPrint">RFID</param>
         /// <param name="stationNo">绔欏彴璇锋眰鐐逛綅</param>
         /// <returns></returns>
-        public WebResponseContent getCharacteristic(string rfidPrint, string stationNo)
+        public WebResponseContent getCharacteristic(string stationNo, string rfidPrint)
         {
             WebResponseContent content = new WebResponseContent();
             try
@@ -37,7 +37,7 @@
                 {
                     plantCode = "1052",
                     rfidPrint = rfidPrint,
-                    vin = vin,
+                    vin = "",
                     messageTime = DateTime.Now.ToString(),
                     unionKey = Guid.NewGuid().ToString(),
                 };
@@ -51,10 +51,10 @@
                 }
                 var wmsIpAddress = wmsBase + ipAddress;
 
-                var MESrespon = HttpHelper.Post(wmsIpAddress, characterInfo.ToJson());
+                var MESrespon = HttpHelper.PostAsync(wmsIpAddress, characterInfo.ToJson(), contentType, headers).Result;
 
-                GetCarCharacteristicInfo characterRespon = JsonConvert.DeserializeObject<GetCarCharacteristicInfo>(MESrespon);
-                if (!characterRespon.success)
+                GetCarCharacteristicInfo characterRespon = JsonConvert.DeserializeObject<GetCarCharacteristicInfo>(MESrespon.ToString());
+                if (characterRespon.code != 200)
                 {
                     throw new Exception($"{characterRespon}");
                 }

--
Gitblit v1.9.3