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: