- AutoSaleStoreSku添加参数isNeedSync控制是否主动同步,定时任务不需要,因为马上就是每晚的定时同步

This commit is contained in:
gazebo
2019-08-03 22:26:03 +08:00
parent c088b793e8
commit 972636e434
3 changed files with 6 additions and 27 deletions

View File

@@ -45,23 +45,8 @@ var (
"00:01:00",
}
autoEnableStoreSkuTimeList = []string{
"7:00:00",
"8:00:00",
"9:00:00",
"10:00:00",
"11:00:00",
"12:00:00",
"13:00:00",
"14:00:00",
"15:00:00",
"16:00:00",
"17:00:00",
"18:00:00",
"19:00:00",
"20:00:00",
"21:00:00",
"22:00:00",
autoSaleStoreSkuTimeList = []string{
"20:50:00",
}
)
@@ -91,8 +76,8 @@ func Init() {
}, updateActStatusTimeList)
}
ScheduleTimerFunc(func() {
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
}, autoEnableStoreSkuTimeList)
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
}, autoSaleStoreSkuTimeList)
}
func doDailyWork() {