From 40d4898f9b4064f20230767871c5c4ebeeaf3337 Mon Sep 17 00:00:00 2001 From: Changhua Date: Wed, 17 May 2023 17:58:56 +0800 Subject: [PATCH] Fix autoAcceptFriendRequest --- requirements.txt | 2 +- robot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index e29f395..a2315d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ pandas pyyaml schedule uvicorn[standard] -wcferry==37.1.25.2 +wcferry==37.1.25.3 diff --git a/robot.py b/robot.py index e5d0151..07cc0b8 100644 --- a/robot.py +++ b/robot.py @@ -177,7 +177,7 @@ class Robot(Job): xml = ET.fromstring(msg.content) v3 = xml.attrib["encryptusername"] v4 = xml.attrib["ticket"] - scene = xml.attrib["scene"] + scene = int(xml.attrib["scene"]) self.wcf.accept_new_friend(v3, v4, scene) except Exception as e: