From 12cff284086a3b951df161b8748dfecd5fe1224a Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 8 Apr 2025 16:21:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=92=A4=E5=9B=9E=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/message_recall/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/message_recall/main.py b/plugins/message_recall/main.py index b554114..110d6a8 100644 --- a/plugins/message_recall/main.py +++ b/plugins/message_recall/main.py @@ -112,7 +112,7 @@ class MessageRecallPlugin(MessagePluginInterface): try: # 从数据库里面提取可以处理的消息and StrTalker ={roomid} sql = (f"SELECT * FROM MSG where IsSender=1 and CreateTime > (strftime('%s', 'now') - 120) " - f"limit {content[len(parts):].strip()}") + f"limit {parts[1]}") data = wcf.query_sql('MSG0.db', sql) self.LOG.info(f"SQL:{sql}\n 查询到可撤回数据: {data}") if not data: