启用ChangeStoreSkuSaleStatus日常任务

This commit is contained in:
gazebo
2019-11-29 16:49:09 +08:00
parent 899e516a75
commit 9f3eb98db0

View File

@@ -122,6 +122,9 @@ func Init() {
}, updateActStatusTimeList)
ScheduleScoreStore()
ScheduleCheckStoreAlert()
ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, 0, true, true)
}, ChangeStoreSkuSaleStatusList)
}
ScheduleTimerFunc("AutoSaleStoreSku", func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
@@ -134,11 +137,6 @@ func Init() {
"04:05:06",
})
}
if beego.BConfig.RunMode == "alpha" {
ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, 0, true, true)
}, ChangeStoreSkuSaleStatusList)
}
}
func doDailyWork() {