mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-25 00:00:53 +00:00
feat: 修改应用商店版本升级判断条件 (#2089)
This commit is contained in:
committed by
wanghe-fit2cloud
parent
ff120c421e
commit
512c7daeee
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user