🎨 系统公告
This commit is contained in:
parent
d87e1de8ce
commit
ea8e18fcc9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue