From 037a25faf4e5ff3d5afb8d7587a3ecce1d6e6a3f Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期三, 18 三月 2026 20:08:38 +0800
Subject: [PATCH] 消息推送时 添加 用户是否在线判断

---
 WebAPI/Service/GeTuiService.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Service/GeTuiService.cs b/WebAPI/Service/GeTuiService.cs
index 0b0fbdf..865fa0d 100644
--- a/WebAPI/Service/GeTuiService.cs
+++ b/WebAPI/Service/GeTuiService.cs
@@ -56,7 +56,7 @@
                                    a.HCheckDate AS 瀹℃牳鏃ユ湡, a.HUpDater AS 淇敼浜�, a.HUpDateDate AS 淇敼鏃ユ湡, a.HCloseMan AS 鍏抽棴浜�, 
                                    a.HCloseDate AS 鍏抽棴鏃ユ湡, a.HDeleteMan AS 浣滃簾浜�, a.HDeleteDate AS 浣滃簾鏃ユ湡, a.HBillType
                     from OA_WorkLinkBillMain a where HInterID = {HInterID}
-                    select * from Gy_UserClientIdRelation
+                    select * from Gy_UserClientIdRelation where HOnline = 1
                 ", "OA_WorkLinkBillMain");
                 NotificationTemplate template = null;
                 ConcurrentDictionary<string, List<string>> userClientIDDictionary = new ConcurrentDictionary<string, List<string>>();
@@ -206,6 +206,9 @@
                 LogService.Write("-----------------------------------------------");
                 LogService.Write("-----------------------------------------------");
                 LogService.Write("----------------鏈嶅姟绔繑鍥炵粨鏋滐細" + pushResult);
+
+                //TODO: 褰撻敊璇俊鎭樉绀鸿澶囩绾挎椂锛屽皢褰撳墠璁惧UUID缁戝畾鐨勭敤鎴风櫥褰曠姸鎬侀厤缃负鏈櫥褰�
+
                 return false;  
             }
         }

--
Gitblit v1.9.1