mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-08 01:20:07 +08:00
feat: 修改应用商店版本升级判断条件 (#2089)
This commit is contained in:
parent
ff120c421e
commit
512c7daeee
@ -680,7 +680,7 @@ func (a AppService) GetAppUpdate() (*response.AppUpdateRes, error) {
|
|||||||
if err = json.Unmarshal(content, list); err != nil {
|
if err = json.Unmarshal(content, list); err != nil {
|
||||||
return nil, err
|
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 nil, buserr.New("ErrVersionTooLow")
|
||||||
}
|
}
|
||||||
return res, nil
|
return res, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user