杨前锦
2025-07-07 c8f338feee0b6003d8f069b1d37fd9b90dd1b7f4
HH.WCS.Mobox3/HH.WCS.Mobox3.TSSG/core/Monitor.cs
@@ -63,9 +63,10 @@
            foreach (var item in ApiHelper.cacheInstockInfos)
            {
                LogHelper.Info($"缓存信号处理,缓存IP:{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");
                        }
                    }
                }
            }