From 59fb3951db7d45b78b0440269d76e5815505ac57 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 16 May 2025 09:59:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A0=86=E7=A7=AF=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=B8=A2=E5=BC=83=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/robot.py b/robot.py index e0029a8..3dbd776 100644 --- a/robot.py +++ b/robot.py @@ -191,20 +191,20 @@ class Robot(Job): self.LOG.info("处理堆积消息中") await self.ipad_bot.send_text_message("filehelper", "ipad客户端启动成功") - count = 0 - while True: - data = await self.ipad_bot.sync_message() - data = data.get("AddMsgs") - if not data: - if count > 2: - break - else: - count += 1 - continue - - self.LOG.debug(f"接受到 {len(data)} 条消息") - await asyncio.sleep(1) - self.LOG.info("处理堆积消息完毕") + # count = 0 + # while True: + # data = await self.ipad_bot.sync_message() + # data = data.get("AddMsgs") + # if not data: + # if count > 2: + # break + # else: + # count += 1 + # continue + # + # self.LOG.debug(f"接受到 {len(data)} 条消息") + # await asyncio.sleep(1) + # self.LOG.info("处理堆积消息完毕") # 标记为运行中 self.ipad_running = True