From 07de1eaa0d020e0f858581e3778cd29b1593930d Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 30 May 2024 10:02:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8F=92=E4=BB=B6=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=AF=94=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/plugin.py b/app/core/plugin.py index 31273c5a..69fb628d 100644 --- a/app/core/plugin.py +++ b/app/core/plugin.py @@ -634,7 +634,7 @@ class PluginManager(metaclass=Singleton): # 相同ID的插件保留版本号最大版本 max_versions = {} for p in all_plugins: - if p.id not in max_versions or p.plugin_version > max_versions[p.id]: + if p.id not in max_versions or StringUtils.compare_version(p.plugin_version, max_versions[p.id]) > 0: max_versions[p.id] = p.plugin_version result = [p for p in all_plugins if p.plugin_version == max_versions[p.id]]