From 85fdfa7d141e1a9d9fc170f636cfeac89f65c2b4 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 30 三月 2026 11:00:59 +0800
Subject: [PATCH] feat(TaskService): InboundFinishTaskAsync添加MES进站调用

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Cache/CacheSyncBackgroundService.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Cache/CacheSyncBackgroundService.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Cache/CacheSyncBackgroundService.cs
index c366493..7110510 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Cache/CacheSyncBackgroundService.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_RedisService/Cache/CacheSyncBackgroundService.cs
@@ -132,6 +132,15 @@
                     try
                     {
                         var keyStr = redisKey.ToString();
+
+                        // 璺宠繃鎺掗櫎鐨刱ey鍓嶇紑锛堝璁惧鐘舵�佺瓑棰戠箒鍙樺姩鐨勬暟鎹級
+                        if (_options.SyncExcludePrefixes.Any(prefix => keyStr.StartsWith(prefix, StringComparison.Ordinal)))
+                        {
+                            _logger.LogTrace("璺宠繃鎺掗櫎鐨刱ey: {Key}", keyStr);
+                            skippedCount++;
+                            continue;
+                        }
+
                         _trackedKeys.AddOrUpdate(keyStr, true, (_, _) => true);
 
                         // 鑾峰彇Redis涓殑鍊�

--
Gitblit v1.9.3