From a93b0e99036c24b9bd58c79bf5e7364b1ba28bae Mon Sep 17 00:00:00 2001 From: 杨前锦 <1010338399@qq.com> Date: 星期二, 01 七月 2025 16:02:33 +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..e403702 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("(缂撳瓨淇″彿)缁堢偣璐т綅锛� + 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