小小的修改一下cron表达式 (#77)

* fix:小修一下表达式

* fix:小修一下表达式
This commit is contained in:
himawari
2021-11-22 13:01:17 +08:00
committed by GitHub
parent d6f1113201
commit bcd111f585
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ func init() {
// 定时任务每天晚上最后2分钟执行一次
func fansDaily(groupID int64) {
c := cron.New()
_, err := c.AddFunc("0 58 23 * * ?", func() { fansData(groupID) })
_, err := c.AddFunc("58 23 * * *", func() { fansData(groupID) })
if err == nil {
c.Start()
}