YouChuKoffee/app/console/kernel.go

15 lines
261 B
Go
Raw Normal View History

2024-06-17 14:18:39 +08:00
package console
import (
"github.com/robfig/cron"
)
/**
* 配置执行计划
* @wiki https://godoc.org/github.com/robfig/cron
*/
func RegisterSchedule(c *cron.Cron) {
c.AddFunc("@every 1m", ClearUnpayOrder)
2024-08-29 22:45:30 +08:00
c.AddFunc("0 0 9 * *", DownLoadAccountBill)
2024-06-17 14:18:39 +08:00
}