待支付订单超时自动取消

This commit is contained in:
苏尹岚
2020-02-25 15:54:03 +08:00
parent f9e9088445
commit 18c24e010d
2 changed files with 46 additions and 0 deletions

View File

@@ -104,6 +104,8 @@ var (
}
importantTaskMap = &sync.Map{}
cancelPayTimeOutOrderList = localjx.GetHalfHoursList()
)
func GetImportantTaskID(taskName string) string {
@@ -180,6 +182,9 @@ func Init() {
ScheduleTimerFunc("AutoPayForPopluarMan", func() {
localjx.AutoPayForPopluarMan(jxcontext.AdminCtx)
}, autoPayForPopluarManList)
ScheduleTimerFunc("CancelPayTimeOutOrder", func() {
localjx.CancelPayTimeOutOrder(jxcontext.AdminCtx)
}, cancelPayTimeOutOrderList)
}
ScheduleTimerFunc("AutoSaleStoreSku", func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)