YouChuKoffee/app/console/kernel.go

14 lines
216 B
Go

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)
}