✏️ 小修正

This commit is contained in:
fumiama 2021-11-25 22:39:25 +08:00
parent 01853768db
commit 37d27e07e9

View File

@ -14,7 +14,7 @@ func init() { // 插件主体
// 定时任务每天10点执行一次 // 定时任务每天10点执行一次
c := cron.New() c := cron.New()
_, err := c.AddFunc("0 10 * * *", func() { sendNotice() }) _, err := c.AddFunc("0 10 * * *", func() { sendNotice() })
if err != nil { if err == nil {
c.Start() c.Start()
} }