From 9c11dd9b0fe5c5b881ae01574f21ec52d815513c Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Wed, 13 Aug 2025 11:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Demoji=5Fmanager.py=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93=E6=8C=81=E4=B9=85=E5=8C=96?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=9B=E6=9B=B4=E6=96=B0Maizone=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E4=BD=9C=E8=80=85=E4=BF=A1=E6=81=AF=E5=92=8C?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=93=BE=E6=8E=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/emoji_system/emoji_manager.py | 2 +- src/plugin_system/apis/send_api.py | 2 +- src/plugins/built_in/Maizone/_manifest.json | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/chat/emoji_system/emoji_manager.py b/src/chat/emoji_system/emoji_manager.py index 36fc61a2c..90f8822c9 100644 --- a/src/chat/emoji_system/emoji_manager.py +++ b/src/chat/emoji_system/emoji_manager.py @@ -429,7 +429,7 @@ class EmojiManager: else: emoji_update.usage_count += 1 emoji_update.last_used_time = time.time() # Update last used time - emoji_update.save() # Persist changes to DB + session.commit() # Persist changes to DB except Exception as e: logger.error(f"记录表情使用失败: {str(e)}") diff --git a/src/plugin_system/apis/send_api.py b/src/plugin_system/apis/send_api.py index f6fde7c38..e842ce31e 100644 --- a/src/plugin_system/apis/send_api.py +++ b/src/plugin_system/apis/send_api.py @@ -499,7 +499,7 @@ async def adapter_command_to_stream( } # 创建消息段 - message_segment = Seg(type="adapter_command", data=adapter_command_data) + message_segment = Seg(type="adapter_command", data=adapter_command_data) # type: ignore # 构建发送消息对象 bot_message = MessageSending( diff --git a/src/plugins/built_in/Maizone/_manifest.json b/src/plugins/built_in/Maizone/_manifest.json index 8f353a6e2..d9999bf5a 100644 --- a/src/plugins/built_in/Maizone/_manifest.json +++ b/src/plugins/built_in/Maizone/_manifest.json @@ -4,8 +4,8 @@ "version": "2.0.0", "description": "让你的麦麦发QQ空间说说、评论、点赞,支持AI配图、定时发送和自动监控功能", "author": { - "name": "重构版", - "url": "https://github.com/internetsb" + "name": "MaiBot-Plus", + "url": "https://github.com/MaiBot-Plus" }, "license": "AGPL-v3.0", @@ -13,8 +13,8 @@ "min_version": "0.8.0", "max_version": "0.10.0" }, - "homepage_url": "https://github.com/internetsb/Maizone", - "repository_url": "https://github.com/internetsb/Maizone", + "homepage_url": "https://github.com/MaiBot-Plus/MaiMbot-Pro-Max", + "repository_url": "https://github.com/MaiBot-Plus/MaiMbot-Pro-Max", "keywords": ["QQ空间", "说说", "动态", "评论", "点赞", "自动化", "AI配图"], "categories": ["社交", "自动化", "QQ空间"],