debug 加好友流程
This commit is contained in:
5
robot.py
5
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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user