Browse Source

fix: 解决运行环境网站切换PHP版本导致已安装应用消失的问题 (#2026)

pull/2028/head
zhengkunwang 1 year ago committed by GitHub
parent
commit
d72d2c1167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      backend/app/service/app_utils.go

4
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]

Loading…
Cancel
Save