调整内容

This commit is contained in:
liuwei
2025-04-22 12:08:41 +08:00
parent 6072f506f7
commit 8f2fbe5f4b
2 changed files with 6 additions and 6 deletions

View File

@@ -16,10 +16,10 @@ class MessageUtil:
"""
# 修改 MessageUtil 类的初始化方法,接受联系人管理器而不是联系人字典
def __init__(self, app_id: str, base_url: str, client: GewechatClient, contact_manager: ContactManager):
def __init__(self, app_id: str, client: GewechatClient):
self.app_id = app_id
self.client = client
self.contact_manager = contact_manager
self.contact_manager = ContactManager.get_instance()
self.LOG = logging.getLogger("MessageUtil")
def send_text(self, msg: str, receiver: str, at_list: str = "") -> None: