From c8f338feee0b6003d8f069b1d37fd9b90dd1b7f4 Mon Sep 17 00:00:00 2001
From: 杨前锦 <1010338399@qq.com>
Date: 星期一, 07 七月 2025 17:31:38 +0800
Subject: [PATCH] 印尼佳通优化

---
 HH.WCS.Mobox3/HH.WCS.Mobox3.TSSG/core/Monitor.cs |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.TSSG/core/Monitor.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.TSSG/core/Monitor.cs
index 9eb8071..f738cab 100644
--- a/HH.WCS.Mobox3/HH.WCS.Mobox3.TSSG/core/Monitor.cs
+++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.TSSG/core/Monitor.cs
@@ -63,9 +63,10 @@
 
             foreach (var item in ApiHelper.cacheInstockInfos)
             {
+                LogHelper.Info($"缂撳瓨淇″彿澶勭悊锛岀紦瀛業P锛歿item.Key}", "TSSG");
                 var instockInfo = item.Value;
                 var end = WMSHelper.GetInstockEnd(instockInfo.item, instockInfo.endArea);
-                LogHelper.Info("缁堢偣璐т綅锛� + JsonConvert.SerializeObject(end), "TSSG");
+                LogHelper.Info($"(缂撳瓨淇″彿锛岀洰鏍囧簱鍖猴細{instockInfo.endArea},鐗╂枡缂栫爜锛歿instockInfo.item})缁堢偣璐т綅锛� + JsonConvert.SerializeObject(end), "TSSG");
                 if (end != null)
                 {
                     ApiHelper.Instock(instockInfo);
@@ -114,8 +115,11 @@
                 var instockInfo = item.Value;
                 if (instockInfo.UDID == flag1) {
                     if (Settings.BufferArea != null && Settings.BufferArea != "") {
-                        item.Value.endArea = Settings.BufferArea;
-                        LogHelper.Info("ip:" + item.Key + "淇″彿绛夊緟鏃堕棿瓒呮椂锛屽彉鏇寸粓鐐瑰簱鍖轰负缂撳瓨鍖�, "TSSG");
+                        var end = WMSHelper.GetInstockEnd(instockInfo.item, Settings.BufferArea);
+                        if (end != null) {
+                            item.Value.endArea = Settings.BufferArea;
+                            LogHelper.Info("ip:" + item.Key + "淇″彿绛夊緟鏃堕棿瓒呮椂锛屽彉鏇寸粓鐐瑰簱鍖轰负缂撳瓨鍖�, "TSSG");
+                        }
                     }
                 }
             }
@@ -130,8 +134,12 @@
                 {
                     if (Settings.BufferArea != null && Settings.BufferArea != "")
                     {
-                        item.Value.endArea = Settings.BufferArea;
-                        LogHelper.Info("ip:" + item.Key + "淇″彿绛夊緟鏃堕棿瓒呮椂锛屽彉鏇寸粓鐐瑰簱鍖轰负缂撳瓨鍖�, "TSSG");
+                        var end = WMSHelper.GetInstockEnd(instockInfo.item, Settings.BufferArea);
+                        if (end != null)
+                        {
+                            item.Value.endArea = Settings.BufferArea;
+                            LogHelper.Info("ip:" + item.Key + "淇″彿绛夊緟鏃堕棿瓒呮椂锛屽彉鏇寸粓鐐瑰簱鍖轰负缂撳瓨鍖�, "TSSG");
+                        }
                     }
                 }
             }

--
Gitblit v1.9.1