fix: Update plugin version check logic to support pre-releases

fixes: #7473
This commit is contained in:
Soulter
2026-04-12 13:59:07 +08:00
parent a7ce8df024
commit 5f95bbc422

View File

@@ -581,7 +581,7 @@ class PluginManager:
f"AstrBot 当前版本 {VERSION} 无法被解析,无法校验插件版本范围。",
)
if current_version not in specifier:
if not specifier.contains(current_version, prereleases=True):
return (
False,
f"当前 AstrBot 版本为 {VERSION},不满足插件要求的 astrbot_version: {normalized_spec}",