|
@@ -8,9 +8,9 @@ import (
|
|
|
|
|
|
func AutoReturnTask() {
|
|
func AutoReturnTask() {
|
|
cr := cron.New()
|
|
cr := cron.New()
|
|
- go AutomaticPayment() //首次执行
|
|
|
|
|
|
+ //go AutomaticPayment() //首次执行
|
|
go OnlineReturnMoney() //首次执行
|
|
go OnlineReturnMoney() //首次执行
|
|
- cr.AddFunc(g.Cfg().MustGet(context.Background(), "autoReturnTaskTime", "0 */3 * * * ?").String(), AutomaticPayment)
|
|
|
|
|
|
+ //cr.AddFunc(g.Cfg().MustGet(context.Background(), "autoReturnTaskTime", "0 */3 * * * ?").String(), AutomaticPayment)
|
|
cr.AddFunc(g.Cfg().MustGet(context.Background(), "onlineReturnMoney", "0 */2 * * * ?").String(), OnlineReturnMoney)
|
|
cr.AddFunc(g.Cfg().MustGet(context.Background(), "onlineReturnMoney", "0 */2 * * * ?").String(), OnlineReturnMoney)
|
|
cr.AddFunc(g.Cfg().MustGet(context.Background(), "protocolNotice.cron", "# 0 2 * * *").String(), OrderProtocolNotice)
|
|
cr.AddFunc(g.Cfg().MustGet(context.Background(), "protocolNotice.cron", "# 0 2 * * *").String(), OrderProtocolNotice)
|
|
cr.Start()
|
|
cr.Start()
|