From ddcf33bb226791821cb1fcbe59cad8de8741f74a Mon Sep 17 00:00:00 2001 From: Changhua Date: Tue, 9 May 2023 09:55:22 +0800 Subject: [PATCH] Upgrade wcferry to 37.1.25.0 --- requirements.txt | 2 +- robot.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4b0452f..cfb0cbd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ pandas pyyaml schedule uvicorn[standard] -wcferry==3.7.0.30.25 +wcferry==37.1.25.0 diff --git a/robot.py b/robot.py index 0f294da..cdf6a9d 100644 --- a/robot.py +++ b/robot.py @@ -178,7 +178,8 @@ def autoAcceptFriendRequest(self, msg: WxMsg) -> None: xml = ET.fromstring(msg.content) v3 = xml.attrib["encryptusername"] v4 = xml.attrib["ticket"] - self.wcf.accept_new_friend(v3, v4) + scene = xml.attrib["scene"] + self.wcf.accept_new_friend(v3, v4, scene) except Exception as e: self.LOG.error(f"同意好友出错:{e}")