如果长连接心跳失败,则尝试二次登录。
This commit is contained in:
5
robot.py
5
robot.py
@@ -321,6 +321,11 @@ class Robot(Job):
|
||||
self.LOG.warning("长连接心跳失败")
|
||||
except Exception as e:
|
||||
self.LOG.error(f"wechat_ipad heartbeat long: {e}")
|
||||
success = await self.ipad_bot.twice_auto_auth()
|
||||
if success:
|
||||
self.LOG.debug("尝试二次登录成功")
|
||||
else:
|
||||
self.LOG.warning("尝试二次登录失败")
|
||||
await asyncio.sleep(10)
|
||||
|
||||
async def _process_ipad_message(self, message: WxMessage):
|
||||
|
||||
Reference in New Issue
Block a user