fix: 解决项目启动失败的问题 (#1829)

pull/1830/head
zhengkunwang 1 year ago committed by GitHub
parent 43e1ec0244
commit d4e6232664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -708,13 +708,14 @@ func (a AppService) SyncAppListFromRemote() (err error) {
if err = json.Unmarshal(content, list); err != nil { if err = json.Unmarshal(content, list); err != nil {
return return
} }
if err = settingRepo().Update("AppStoreLastModified", strconv.Itoa(list.LastModified)); err != nil {
if err = NewISettingService().Update("AppStoreLastModified", strconv.Itoa(list.LastModified)); err != nil {
return err return err
} }
defer func() { defer func() {
if err != nil { if err != nil {
_ = settingRepo().Update("AppStoreLastModified", strconv.Itoa(updateRes.AppStoreLastModified)) _ = NewISettingService().Update("AppStoreLastModified", strconv.Itoa(updateRes.AppStoreLastModified))
} }
}() }()

Loading…
Cancel
Save