默认自动检查版本更新

This commit is contained in:
GoEdgeLab
2023-07-20 09:38:09 +08:00
parent e3f0e11458
commit e2e8ea5d5d
3 changed files with 5 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ func (this *CheckUpdatesTask) Loop() error {
return err
}
var valueJSON = valueResp.ValueJSON
var config = &systemconfigs.CheckUpdatesConfig{AutoCheck: false}
var config = systemconfigs.NewCheckUpdatesConfig()
if len(valueJSON) > 0 {
err = json.Unmarshal(valueJSON, config)
if err != nil {