feat: 修改应用商店版本升级判断条件 (#2089)

pull/2090/head
zhengkunwang 1 year ago committed by GitHub
parent 9f0d957145
commit 7ff9c75bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -682,7 +682,7 @@ func (a AppService) GetAppUpdate() (*response.AppUpdateRes, error) {
if err = json.Unmarshal(content, list); err != nil {
return nil, err
}
if list.Extra.Version != "" && !common.CompareVersion(setting.SystemVersion, list.Extra.Version) {
if list.Extra.Version != "" && setting.SystemVersion != list.Extra.Version && !common.CompareVersion(setting.SystemVersion, list.Extra.Version) {
return nil, buserr.New("ErrVersionTooLow")
}
return res, nil

Loading…
Cancel
Save