This commit is contained in:
邹宗楠
2022-08-05 11:27:31 +08:00
parent ca1f6fccbe
commit 13da7ceafc
2 changed files with 22 additions and 0 deletions

View File

@@ -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()