fix(plugin): return remoteEntry path without API prefix to avoid double prefix 404

- get_plugin_remote_entry returns /plugin/file/... (relative to API root)
- Frontend already prepends API base; adding API_V1_STR caused /api/v1/api/v1/...

Made-with: Cursor
This commit is contained in:
DDSRem
2026-03-11 15:12:40 +08:00
parent 0312a500a6
commit 7638db4c3b

View File

@@ -777,9 +777,7 @@ class PluginManager(ConfigReloadMixin, metaclass=Singleton):
:return: 远程入口地址
"""
dist_path = dist_path.strip("/")
api_prefix = settings.API_V1_STR.rstrip("/")
path = posixpath.join(
api_prefix,
"plugin",
"file",
plugin_id.lower(),