- 所有环境起用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() {
if globals.ReallyCallPlatformAPI {
if globals.IsProductEnv() {
ScheduleTimerFunc(doDailyWork, dailyWorkTimeList)
ScheduleTimerFuncByInterval(func() {
@@ -89,11 +89,10 @@ func Init() {
ScheduleTimerFunc(func() {
dao.UpdateActStatusByTime(dao.GetDB(), time.Now().Add(-48*time.Hour))
}, updateActStatusTimeList)
ScheduleTimerFunc(func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
}, autoEnableStoreSkuTimeList)
}
ScheduleTimerFunc(func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
}, autoEnableStoreSkuTimeList)
}
func doDailyWork() {

View File

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