From 70d65b2b2c43150d657d283d6b0103caec6196eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 15 Mar 2024 17:07:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8D=E5=86=8D=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/middleware/must_install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/http/middleware/must_install.go b/app/http/middleware/must_install.go index 6c2b4a95..6768854a 100644 --- a/app/http/middleware/must_install.go +++ b/app/http/middleware/must_install.go @@ -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 }