From 18c6d2b0dd77b38f487747aad1fcd1218aa8c356 Mon Sep 17 00:00:00 2001 From: yj <2077506045@qq.com> Date: 星期三, 27 八月 2025 09:19:57 +0800 Subject: [PATCH] 1. 新增测试群组关键字,测试群组名称包含关键字,在其中发言一律不触发静默。 --- 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