Optimize the installation of plugin dependencies (#700)

* Optimize the installation of plugin dependencies

* Remove enumerate

* Update main params
This commit is contained in:
Wu Clan
2025-06-30 09:29:35 +08:00
committed by GitHub
parent c306432708
commit a461f78224
7 changed files with 72 additions and 55 deletions
+3 -4
View File
@@ -56,10 +56,9 @@ class PluginService:
if not file:
raise errors.RequestError(msg='ZIP 压缩包不能为空')
return await install_zip_plugin(file)
elif type == PluginType.git:
if not repo_url:
raise errors.RequestError(msg='Git 仓库地址不能为空')
return await install_git_plugin(repo_url)
if not repo_url:
raise errors.RequestError(msg='Git 仓库地址不能为空')
return await install_git_plugin(repo_url)
@staticmethod
async def uninstall(*, plugin: str):