同步菜市物料到果园收工,加到果园每晚上的任务中

This commit is contained in:
苏尹岚
2020-04-26 14:26:21 +08:00
parent d179bde603
commit 5391e1acef
2 changed files with 7 additions and 6 deletions

View File

@@ -218,6 +218,11 @@ func Init() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
}, autoSaleStoreSkuTimeList)
if beego.BConfig.RunMode == "jxgy" {
ScheduleTimerFunc("SyncMatterC4ToGy", func() {
cms.SyncMatterC4ToGy(jxcontext.AdminCtx, true, true)
}, dailyWorkTimeList)
}
if beego.BConfig.RunMode == "beta" {
ScheduleTimerFunc("CancelPayTimeOutOrder", func() {
localjx.CancelPayTimeOutOrder(jxcontext.AdminCtx)