From d7a90118b82d254c8182293078e6cdadc0e518f0 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 18 Feb 2025 11:22:43 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=E5=8A=A0=E5=A5=BD=E5=8F=8B=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index 1f8107e..b569fa4 100644 --- a/robot.py +++ b/robot.py @@ -217,6 +217,7 @@ class Robot(Job): # 非群聊信息,按消息类型进行处理 if msg.type == 37: # 好友请求 + self.LOG.info(f"收到好友请求:{msg}") self.autoAcceptFriendRequest(msg) elif msg.type == 10000: # 系统信息 @@ -317,8 +318,8 @@ class Robot(Job): v3 = xml.attrib["encryptusername"] v4 = xml.attrib["ticket"] scene = int(xml.attrib["scene"]) - self.wcf.accept_new_friend(v3, v4, scene) - + res = self.wcf.accept_new_friend(v3, v4, scene) + self.LOG.info(f"同意好友请求:{res}") except Exception as e: self.LOG.error(f"同意好友出错:{e}")