From 7638db4c3b3acd979ce9fcb5cd55c0421decca40 Mon Sep 17 00:00:00 2001 From: DDSRem <1448139087@qq.com> Date: Wed, 11 Mar 2026 15:12:40 +0800 Subject: [PATCH] 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 --- app/core/plugin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/core/plugin.py b/app/core/plugin.py index 10e90aa7..54ad2e01 100644 --- a/app/core/plugin.py +++ b/app/core/plugin.py @@ -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(),