- 所有环境起用AutoSaleStoreSku
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user