2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 18:27:13 +08:00

feat: 不再强制更新插件

This commit is contained in:
耗子
2024-03-15 17:07:55 +08:00
parent 3de92c9603
commit 70d65b2b2c

View File

@@ -36,9 +36,9 @@ func MustInstall() http.Middleware {
return
}
if installedPlugin.Version != plugin.Version || installedPlugin.Slug != plugin.Slug {
if installedPlugin.Slug != plugin.Slug {
ctx.Request().AbortWithStatusJson(http.StatusForbidden, http.Json{
"message": "插件 " + slug + " 需要更新至 " + plugin.Version + " 版本",
"message": "插件 " + slug + " 未安装",
})
return
}