From bd4181361fdd0a255a1bc6f40d93b0f1ec30aba4 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 22 Dec 2021 10:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=A3=80=E6=9F=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=A2=AB=E5=8F=96=E6=B6=88=E6=97=B6=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E9=87=8D=E7=BD=AE=E5=B7=B2=E5=8F=91=E7=8E=B0=E7=9A=84?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/settings/updates/update.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/web/actions/default/settings/updates/update.go b/internal/web/actions/default/settings/updates/update.go index 95ba021c..ca929a7a 100644 --- a/internal/web/actions/default/settings/updates/update.go +++ b/internal/web/actions/default/settings/updates/update.go @@ -4,6 +4,7 @@ package updates import ( "encoding/json" + teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const" "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils" "github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb" "github.com/TeaOSLab/EdgeCommon/pkg/systemconfigs" @@ -48,5 +49,11 @@ func (this *UpdateAction) RunPost(params struct { return } + // 重置状态 + if !config.AutoCheck { + teaconst.NewVersionCode = "" + teaconst.NewVersionDownloadURL = "" + } + this.Success() }