- 启用门店商品临时不可售,暂时不建AutoSaleAt相关的索引

This commit is contained in:
gazebo
2019-08-01 10:37:23 +08:00
parent 84c0b93ec4
commit a7b9a49982
3 changed files with 54 additions and 38 deletions

View File

@@ -47,7 +47,20 @@ var (
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",
}
)
@@ -77,9 +90,9 @@ func Init() {
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)
}
}