From 4de0fa345824e038b26d0df13964a84cfb477537 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 19 May 2025 10:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=92=E8=A1=8C=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index b60aa9a..c75b254 100644 --- a/robot.py +++ b/robot.py @@ -678,7 +678,7 @@ class Robot(Job): except Exception as e: self.LOG.error(f"xiu_ren_download_task error:{e}") - async def generate_and_send_ranking(self): + def generate_and_send_ranking(self): try: receivers = self.gbm.get_group_list() if not receivers: @@ -686,6 +686,6 @@ class Robot(Job): for r in receivers: if self.gbm.get_group_permission(r, Feature.DAILY_SUMMARY) == PermissionStatus.ENABLED: output = self.message_storage.generate_and_send_ranking(r, self.allContacts) - await self.ipad_bot.send_text_message(r, output) + asyncio.run(self.ipad_bot.send_text_message(r, output)) except Exception as e: self.LOG.error(f"SendRanking error:{e}")