From d72d2c11676434f4618fe9eeefb76bdf73e143ae Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:38:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=BD=91=E7=AB=99=E5=88=87=E6=8D=A2PHP?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=AF=BC=E8=87=B4=E5=B7=B2=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=B6=88=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2026)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index b3bbb4224..04dff20a9 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -840,6 +840,10 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool) ([]respons } versions = common.GetSortedVersions(versions) if len(versions) == 0 { + if !updated { + installDTO.CanUpdate = false + res = append(res, installDTO) + } continue } lastVersion := versions[0]