如果失败了,则不进行登录动作。退出二次登录尝试,防止死循环尝试
This commit is contained in:
2
robot.py
2
robot.py
@@ -643,6 +643,8 @@ class Robot:
|
|||||||
self.LOG.info(f"ipad_wechat stopped change running:{self.ipad_running}")
|
self.LOG.info(f"ipad_wechat stopped change running:{self.ipad_running}")
|
||||||
else:
|
else:
|
||||||
self.LOG.error(f"定时二次登录失败!")
|
self.LOG.error(f"定时二次登录失败!")
|
||||||
|
self.ipad_running = False
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.LOG.error(f"login_twice_auto_auth error: {e}")
|
self.LOG.error(f"login_twice_auto_auth error: {e}")
|
||||||
|
|
||||||
|
|||||||
@@ -226,7 +226,8 @@ class LoginMixin(WechatAPIClientBase):
|
|||||||
if json_resp.get("Success"):
|
if json_resp.get("Success"):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.error_handler(json_resp)
|
logger.error("Twice Auto Auth Failed")
|
||||||
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_device_name() -> str:
|
def create_device_name() -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user