From 213ba24a9b5d9eee29e6cc9dc972b5f2b98b0390 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Mon, 3 Feb 2025 22:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8A=E6=97=A5=E5=A1=94=E7=BD=97=E6=8F=90?= =?UTF-8?q?=E4=BA=A4,=E5=B9=B6=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qq_plugins/fortune.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/qq_plugins/fortune.py b/src/qq_plugins/fortune.py index 80f14a1..0384fcd 100644 --- a/src/qq_plugins/fortune.py +++ b/src/qq_plugins/fortune.py @@ -12,14 +12,7 @@ fortune_by_sqlite = on_command("今日运势", rule=to_me(), priority=10, block= async def get_today_fortune(message: MessageEvent): local_image_path = get_image_names() - member_openid = message.get_user_id() - # 查询今日是否已经获取过今日运势,如果获取过则直接从日志取 - result = await QrFortuneLog.is_get_fortune_log(member_openid) - if result is None: - # 获取 运势说明 - result = await QrFortune.get_fortune() - # 把抽取的今日运势插入日志 - await QrFortuneLog.insert_fortune_log(result, member_openid) + result = await QrFortune.get_fortune(message.get_user_id()) content = ("\n" + "您的今日运势为:" + "\n" + result.fortune_summary + "\n" +