mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-18 22:22:59 +08:00
feat: 修改应用商店版本升级判断条件 (#2089)
This commit is contained in:
parent
9f0d957145
commit
7ff9c75bdf
@ -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…
Reference in New Issue
Block a user