From 7e6896fa0193d38c2ca0a9ef0137696045239a2d Mon Sep 17 00:00:00 2001 From: molanp <104612722+molanp@users.noreply.github.com> Date: Sun, 28 Sep 2025 08:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91fix(data=5Fsource):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8F=92=E4=BB=B6=E5=95=86=E5=BA=97=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF=20(#2056)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🚑fix(data_source): 修复插件商店更新路径错误 * fix(plugin_store): 修复插件模块路径处理逻辑 简化了插件模块路径的赋值逻辑,直接使用插件对象的模块路径,避免不必要的路径分割操作。 同时修复了目标目录判断条件,确保只有在模块路径为根目录时才使用插件名称作为目录。 --- zhenxun/builtin_plugins/plugin_store/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/plugin_store/data_source.py b/zhenxun/builtin_plugins/plugin_store/data_source.py index 4ca502f8..284307d5 100644 --- a/zhenxun/builtin_plugins/plugin_store/data_source.py +++ b/zhenxun/builtin_plugins/plugin_store/data_source.py @@ -287,7 +287,7 @@ class StoreManager: files = [RepoFileInfo(path=f"{replace_module_path}.py", is_dir=False)] if not is_external: target_dir = BASE_PATH - elif is_dir: + elif is_dir and module_path == ".": target_dir = BASE_PATH / "plugins" / plugin_name else: target_dir = BASE_PATH / "plugins"