- 门店商品自动可售,未启用
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user