From 2e391d599d08ea7a7c11442bc2845a1191494c3d Mon Sep 17 00:00:00 2001 From: yj <2077506045@qq.com> Date: 星期四, 07 八月 2025 17:55:58 +0800 Subject: [PATCH] 新增消息聚会,短时间内同一用户发送的消息聚合才后发送给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