1
This commit is contained in:
@@ -2,6 +2,7 @@ package misc
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/partner/pdd"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
bidaServer "git.rosy.net.cn/jx-callback/business/q_bida"
|
||||
"time"
|
||||
|
||||
@@ -22,6 +23,9 @@ var (
|
||||
stationTimeList = []string{
|
||||
"11:35:00",
|
||||
}
|
||||
startDeleteTime = []string{
|
||||
"04:00:00",
|
||||
}
|
||||
)
|
||||
|
||||
func Init() {
|
||||
@@ -39,6 +43,11 @@ func Init() {
|
||||
cms.InitStation(jxcontext.AdminCtx)
|
||||
}, stationTimeList)
|
||||
|
||||
// 定时删除打印信息
|
||||
ScheduleTimerFunc("DeleteTimeOutPrintMsg", func() {
|
||||
dao.DeletePrintMsg()
|
||||
}, stationTimeList)
|
||||
|
||||
// 每两小时更新一下订单信息UpdateOrderStatus
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
bidaServer.UpdateOrderStatus()
|
||||
|
||||
Reference in New Issue
Block a user