fix 插件版本比较
This commit is contained in:
parent
34e70adabb
commit
07de1eaa0d
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user