- 所有环境起用AutoSaleStoreSku

This commit is contained in:
gazebo
2019-08-01 15:11:33 +08:00
parent a31ba8f730
commit 66fcd42fc6
2 changed files with 5 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ var (
) )
func Init() { func Init() {
if globals.ReallyCallPlatformAPI { if globals.IsProductEnv() {
ScheduleTimerFunc(doDailyWork, dailyWorkTimeList) ScheduleTimerFunc(doDailyWork, dailyWorkTimeList)
ScheduleTimerFuncByInterval(func() { ScheduleTimerFuncByInterval(func() {
@@ -89,11 +89,10 @@ func Init() {
ScheduleTimerFunc(func() { ScheduleTimerFunc(func() {
dao.UpdateActStatusByTime(dao.GetDB(), time.Now().Add(-48*time.Hour)) dao.UpdateActStatusByTime(dao.GetDB(), time.Now().Add(-48*time.Hour))
}, updateActStatusTimeList) }, updateActStatusTimeList)
ScheduleTimerFunc(func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
}, autoEnableStoreSkuTimeList)
} }
ScheduleTimerFunc(func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
}, autoEnableStoreSkuTimeList)
} }
func doDailyWork() { func doDailyWork() {

View File

@@ -56,9 +56,9 @@ func Init() {
if globals.IsProductEnv() { if globals.IsProductEnv() {
ebai.CurPurchaseHandler.StartRefreshComment() ebai.CurPurchaseHandler.StartRefreshComment()
misc.Init()
misc.InitEx() misc.InitEx()
} }
misc.Init()
} }
// 返回true表示非运行服务 // 返回true表示非运行服务