From 34da3f8459f548aa0b680e102c143e18ddf882cc Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Thu, 6 Nov 2025 11:46:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=8F=92=E4=BB=B6=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E5=9C=B0=E5=9D=80=E7=9A=84.py=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreModules/plugin_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreModules/plugin_interface.py b/CoreModules/plugin_interface.py index 3249e12..9632bd1 100644 --- a/CoreModules/plugin_interface.py +++ b/CoreModules/plugin_interface.py @@ -123,7 +123,7 @@ def ImportPlugins(app: FastAPI, plugin_dir:str = "Plugins") -> None: plugin = plugin_class() if plugin.is_enable_plugin() == False: continue - router = plugin.execute(f"/{module_file}") + router = plugin.execute(f"/{module_file.GetFullPath().replace(".py", '')}") if router: app.include_router(router, prefix=f"/api", tags=[plugin.get_plugin_tag()]) except Exception as e: