From f1f742811db65c65a62f6e0f8fd964675a4c3f84 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 22 Dec 2025 15:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5debug=20=E6=97=A5=E5=BF=97?= =?UTF-8?q?=EF=BC=8C=E6=9F=A5=E7=9C=8B=E9=80=80=E7=BE=A4=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robot.py b/robot.py index 0ca001a..eeac484 100644 --- a/robot.py +++ b/robot.py @@ -231,7 +231,6 @@ class Robot: while self.ipad_running: try: data = await self.ipad_bot.sync_message() - self.LOG.debug(f"MESSAGE:{data}") except Exception as e: self.LOG.error(f"获取新消息失败 {e}") if "用户可能退出" in str(e): @@ -262,6 +261,8 @@ class Robot: # 创建独立任务,不阻塞下一条消息 # 并发执行,限制最大并发数 xx = asyncio.create_task(self._process_with_semaphore(wxmsg)) + else: + self.LOG.debug(f"MESSAGE:{data}") # 使用异步睡眠替代忙等待循环 await asyncio.sleep(2)