From 60f0db204b1ef475b8a14ab309e8eeac0db5e208 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期三, 13 八月 2025 19:31:36 +0800
Subject: [PATCH] 修改问题

---
 Admin.NET/WCS.Application/Util/HttpService.cs |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/Admin.NET/WCS.Application/Util/HttpService.cs b/Admin.NET/WCS.Application/Util/HttpService.cs
index 49a0d97..8a24de8 100644
--- a/Admin.NET/WCS.Application/Util/HttpService.cs
+++ b/Admin.NET/WCS.Application/Util/HttpService.cs
@@ -32,8 +32,10 @@
     /// <param name="ceng"></param>
     /// <param name="endLocat"></param>
     /// <param name="taskNo"></param>
+    /// <param name="palletHeight"></param>
+    /// <param name="palletWeight"></param>
     /// <returns></returns>
-    public string RequestRoadWay(string palletNo, string startLocat, string taskModel, string ceng, ref string endLocat, ref string taskNo, int palletHeight)
+    public string RequestRoadWay(string palletNo, string startLocat, string taskModel, string ceng, ref string endLocat, ref string taskNo, int palletHeight,string palletWeight)
     {
         Log.Information("璋冪敤WMS鎺ュ彛鍙嶉浠诲姟鎺ュ彛-鏄惁閲嶅鐢宠锛�" + palletNo);
         lock (OLock) 
@@ -51,7 +53,8 @@
                     HouseNo = "W01",
                     TaskModel = taskModel,
                     PalletHeight = palletHeight,
-                    StartLocat = startLocat
+                    StartLocat = startLocat,
+                    PalletWeight = palletWeight
                 };
 
                 string url = Urls.WMSAddress + ":" + Urls.WMSPort;
@@ -439,4 +442,28 @@
         }
         return returnStr;
     }
+
+    /// <summary>
+    /// 鍙犳墭鏈虹敵璇风┖鎵樿泛缁戝畾
+    /// </summary>
+    /// <param name="palletNo"></param>
+    /// <returns></returns>
+    public string BindNullPalletWcs(int qty,string palletNo)
+    {
+        string returnStr = "";
+        var model = new
+        {
+            PalletNo = palletNo,
+            Qty = qty,
+        };
+        string url = Urls.WMSAddress + ":" + Urls.WMSPort;
+        var result = (url + "/api/DownAPi/BindNullPalletWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<ResponseSkuInfo>().Result;
+        Log.Information("璋冪敤WMS鎺ュ彛鍙犳墭鏈虹粦瀹氱┖鎵樿泛" + result.ToJson());
+
+        if (result.Success != 0)
+        {
+            returnStr = "-1:" + result.Message;
+        }
+        return returnStr;
+    }
 }

--
Gitblit v1.8.0