forked from lxh/go-wxhelper
🎨 优化定时任务
This commit is contained in:
parent
744fb7b1d0
commit
40e4dc48c6
@ -16,7 +16,7 @@ func InitTasks() {
|
||||
_, _ = s.Every(1).Day().At("09:30").Do(yesterday)
|
||||
|
||||
// 每小时更新一次好友列表
|
||||
_, _ = s.Every(1).Minute().Do(syncFriends)
|
||||
_, _ = s.Every(1).Hour().Do(syncFriends)
|
||||
|
||||
// 开启定时任务
|
||||
s.StartAsync()
|
||||
|
Loading…
Reference in New Issue
Block a user