From a474060ae47fc4c807120b2a6178e8d8f84c0863 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 27 一月 2026 15:07:25 +0800
Subject: [PATCH] 1

---
 WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/PalletTypeInfoService.cs |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/PalletTypeInfoService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/PalletTypeInfoService.cs
index 87000a5..dc46441 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/PalletTypeInfoService.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/PalletTypeInfoService.cs
@@ -8,6 +8,7 @@
 using WIDESEA_Core;
 using WIDESEA_Core.BaseServices;
 using WIDESEA_Core.Const;
+using WIDESEA_Core.Helper;
 using WIDESEA_IBasicRepository;
 using WIDESEA_IBasicService;
 using WIDESEA_Model.Models;
@@ -35,8 +36,8 @@
                 {
                     PalletCodes.Add(GetOrderPintCode($"{palletCodeType}PalletCodes",palletCodeType));
                 }
-                //content= PrintPallet(PalletCodes);
-                foreach(var PalletCode in PalletCodes)
+                content= PrintPallet(PalletCodes);
+                foreach (var PalletCode in PalletCodes)
                 {
                     Console.WriteLine(PalletCode);
                 }
@@ -81,15 +82,8 @@
         /// <exception cref="InvalidOperationException"></exception>
         public WebResponseContent PrintPallet(List<string> palletCodes)
         {
-            var Base = "";
-            var ipAddress = "";
-            if (Base == null || ipAddress == null)
-            {
-                throw new InvalidOperationException("WMS IP 鏈厤缃�");
-            }
-            var IpAddress = Base + ipAddress;
-            //var result = HttpsClient.PostAsync(palletCodes.ToJsonString()).Result; 
-            //return JsonConvert.DeserializeObject<WebResponseContent>();
+            string url = "http://127.0.0.1:8098/Print/PrintPalletCode";
+            HttpHelper.Post(url, palletCodes.Serialize());
             return WebResponseContent.Instance.OK();
         }
     }

--
Gitblit v1.9.3