- 门店商品自动可售,未启用

This commit is contained in:
gazebo
2019-07-29 18:47:11 +08:00
parent d8852a569b
commit 5b10960232
5 changed files with 79 additions and 6 deletions

View File

@@ -44,6 +44,12 @@ var (
updateActStatusTimeList = []string{
"00:01:00",
}
autoEnableStoreSkuTimeList = []string{
"7:00:00",
"14:00:00",
"22:00:00",
}
)
func Init() {
@@ -70,6 +76,10 @@ func Init() {
ScheduleTimerFunc(func() {
dao.UpdateActStatusByTime(dao.GetDB(), time.Now().Add(-48*time.Hour))
}, updateActStatusTimeList)
// ScheduleTimerFunc(func() {
// cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
// }, autoEnableStoreSkuTimeList)
}
}