From 0ed1530b4049944f44554ba4711acb823a211854 Mon Sep 17 00:00:00 2001
From: yj <2077506045@qq.com>
Date: 星期二, 26 八月 2025 10:37:23 +0800
Subject: [PATCH] 1.新增结束语判断;2.增加@客服后静默;3.增加判断群已静默后AI已回复也不发消息

---
 app/services/contact_sync.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/app/services/contact_sync.py b/app/services/contact_sync.py
index 42d4acd..a775333 100644
--- a/app/services/contact_sync.py
+++ b/app/services/contact_sync.py
@@ -8,6 +8,7 @@
 from app.models.contact import Contact
 from app.models.database import get_db
 from app.services.ecloud_client import ecloud_client
+from app.services.friend_ignore_service import friend_ignore_service
 
 
 class ContactSyncService:
@@ -48,7 +49,10 @@
 
             logger.info(f"鑾峰彇鍒板ソ鍙嬪垪琛�: wId={w_id}, count={len(friends)}")
 
-            # 4. 鎵归噺鑾峰彇鑱旂郴浜鸿缁嗕俊鎭�
+            # 4. 灏嗗ソ鍙媤_id娣诲姞鍒癛edis蹇界暐鍒楄〃
+            friend_ignore_service.add_friends_to_ignore_list(friends)
+
+            # 5. 鎵归噺鑾峰彇鑱旂郴浜鸿缁嗕俊鎭�
             return self._batch_sync_contacts(w_id, friends)
 
         except Exception as e:

--
Gitblit v1.9.1