Merge remote-tracking branch 'origin/mark' into don

This commit is contained in:
Rosy-zhudan
2019-07-30 15:37:30 +08:00
14 changed files with 142 additions and 35 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)
}
}