Skip to content

Commit 1416fb0

Browse files
authored
fix: Fix the problem of abnormal acquisition of system update versions (#8988)
1 parent e925773 commit 1416fb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/app/service/upgrade.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ func (u *UpgradeService) loadVersionByMode(developer, currentVersion string) (st
296296

297297
versionPart := strings.Split(current, ".")
298298
if len(versionPart) < 3 {
299-
return betaVersionLatest, current, latest
299+
return betaVersionLatest, "", latest
300300
}
301301
num, _ := strconv.Atoi(versionPart[1])
302302
if num == 0 {
303-
return betaVersionLatest, current, latest
303+
return betaVersionLatest, "", latest
304304
}
305305
if num >= 10 {
306306
if current[:6] == currentVersion[:6] {
@@ -309,7 +309,7 @@ func (u *UpgradeService) loadVersionByMode(developer, currentVersion string) (st
309309
return betaVersionLatest, "", latest
310310
}
311311
if current[:5] == currentVersion[:5] {
312-
return betaVersionLatest, current, ""
312+
return betaVersionLatest, "", ""
313313
}
314314
return betaVersionLatest, "", latest
315315
}

0 commit comments

Comments
 (0)