1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

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

This commit is contained in:
zhengkunwang 2023-08-28 15:32:12 +08:00 committed by wanghe-fit2cloud
parent ff120c421e
commit 512c7daeee

View File

@ -680,7 +680,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