From f968d134c7bd0027a8e2e3109b7280c3fec9660e Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Sat, 27 Sep 2025 14:05:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugin):=20=E7=A7=BB=E9=99=A4=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=85=8D=E7=BD=AE=E5=90=8C=E6=AD=A5=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E5=B9=B6=E5=A2=9E=E5=BC=BA=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在插件管理器中,移除了加载插件时对已废弃的配置同步方法的调用。 同时,为了更好地排查 `maizone` 插件发送动态失败的问题,增强了其命令的异常日志,现在会额外记录异常类型。 --- src/plugin_system/core/plugin_manager.py | 2 -- .../built_in/maizone_refactored/commands/send_feed_command.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugin_system/core/plugin_manager.py b/src/plugin_system/core/plugin_manager.py index 0367add33..e0a39ac25 100644 --- a/src/plugin_system/core/plugin_manager.py +++ b/src/plugin_system/core/plugin_manager.py @@ -106,8 +106,6 @@ class PluginManager: if not plugin_dir: return False, 1 - # 同步插件配置 - self._synchronize_plugin_config(plugin_name, plugin_dir) plugin_instance = plugin_class(plugin_dir=plugin_dir) # 实例化插件(可能因为缺少manifest而失败) if not plugin_instance: diff --git a/src/plugins/built_in/maizone_refactored/commands/send_feed_command.py b/src/plugins/built_in/maizone_refactored/commands/send_feed_command.py index 819655e84..631ca430d 100644 --- a/src/plugins/built_in/maizone_refactored/commands/send_feed_command.py +++ b/src/plugins/built_in/maizone_refactored/commands/send_feed_command.py @@ -53,6 +53,6 @@ class SendFeedCommand(PlusCommand): return False, result.get("message", "未知错误"), True except Exception as e: - logger.error(f"执行发送说说命令时发生未知异常: {e}", exc_info=True) + logger.error(f"执行发送说说命令时发生未知异常: {e},它的类型是:{type(e)}", exc_info=True) await self.send_text("呜... 发送过程中好像出了点问题。") return False, "命令执行异常", True