From 4064c9064863346adb84c1f60e29bc88cb38fcf5 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 20 Aug 2025 14:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=A4=B1=E8=B4=A5=E4=BA=86?= =?UTF-8?q?=EF=BC=8C=E5=88=99=E4=B8=8D=E8=BF=9B=E8=A1=8C=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C=E3=80=82=E9=80=80=E5=87=BA=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=B0=9D=E8=AF=95=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF=E5=B0=9D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 2 ++ wechat_ipad/client/login.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/robot.py b/robot.py index a5a2fd9..f684cc5 100644 --- a/robot.py +++ b/robot.py @@ -643,6 +643,8 @@ class Robot: self.LOG.info(f"ipad_wechat stopped change running:{self.ipad_running}") else: self.LOG.error(f"定时二次登录失败!") + self.ipad_running = False + except Exception as e: self.LOG.error(f"login_twice_auto_auth error: {e}") diff --git a/wechat_ipad/client/login.py b/wechat_ipad/client/login.py index dd2f2bc..bb4e92c 100644 --- a/wechat_ipad/client/login.py +++ b/wechat_ipad/client/login.py @@ -226,7 +226,8 @@ class LoginMixin(WechatAPIClientBase): if json_resp.get("Success"): return True else: - self.error_handler(json_resp) + logger.error("Twice Auto Auth Failed") + return False @staticmethod def create_device_name() -> str: