From 59bc10620e483c7f558eac4127d04d08871f0e27 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 27 三月 2026 14:12:27 +0800
Subject: [PATCH] fix(RouterService): QueryAllPositions 空 catch 块增加错误日志

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
index e0259be..731bd19 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
@@ -409,9 +409,9 @@
                     // 杩斿洖鍘婚噸鍚庣殑浣嶇疆鍒楄〃
                     return positions.GroupBy(x => x).Select(x => x.Key).ToList();
                 }
-                catch
+                catch (Exception ex)
                 {
-
+                    ConsoleHelper.WriteErrorLine($"RouterService.QueryAllPositions 鏌ヨ澶辫触: {ex.Message}");
                 }
                 finally
                 {

--
Gitblit v1.9.3