From 9f3eb98db0fe5fe204e1ecb1c3f388260d717134 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 29 Nov 2019 16:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8ChangeStoreSkuSaleStatus?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/misc/misc.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index d5ecebe95..5541807eb 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -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() {