update miaosic source dependency

This commit is contained in:
aynakeya
2024-06-04 19:48:51 +08:00
parent 36cdfd0824
commit ea05fcd902
2 changed files with 2 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ func CheckUpdate() (model.VersionInfo, bool) {
return model.VersionInfo{}, false
}
result := gjson.ParseBytes(resp.Body())
log.Infof("check update result: %s", result.String())
if !result.Get("data.has_update").Bool() {
log.Infof("no update available")
return model.VersionInfo{}, false