🎨 系统公告

This commit is contained in:
Liang Ding 2022-07-15 23:47:38 +08:00
parent d87e1de8ce
commit ea8e18fcc9
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -178,7 +178,7 @@ func AutoRefreshUser() {
defer util.Recover()
if nil != Conf.User {
time.Sleep(3 * time.Minute)
time.Sleep(2 * time.Minute)
if nil != Conf.User {
RefreshUser(Conf.User.UserToken)
}
@ -200,6 +200,7 @@ func AutoRefreshUser() {
}
if err = gulu.JSON.UnmarshalJSON(data, &existingAnnouncements); nil != err {
util.LogErrorf("unmarshal announcement conf failed: %s", err)
os.Remove(announcementConf)
return
}
}