From ee8dc3b3de7e5783b7d374ef987e4563bb60eaad Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 22 Apr 2025 15:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E5=88=9D=E5=A7=8B=E5=8C=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/robot.py b/robot.py index 8d3373d..219889f 100644 --- a/robot.py +++ b/robot.py @@ -2,10 +2,6 @@ import logging import re import time -import xml.etree.ElementTree as ET -from queue import Empty -from threading import Thread -import random from gewechat_client import GewechatClient @@ -59,12 +55,12 @@ class Robot(Job): self.db_pool = self.db_manager.mysql_pool self.redis_pool = self.db_manager.redis_pool + self.contacts_db = ContactsDBOperator(self.db_manager) # 初始化联系人管理器并设置联系人 self.contact_manager = ContactManager.get_instance() self.allContacts = self.get_all_contacts() self.contact_manager.set_contacts(self.allContacts) - self.contacts_db = ContactsDBOperator(self.db_manager) # 获取个人信息 obj = json_to_object(self.client.get_profile(self.app_id)) if obj.data.wxid is None: