定时刷新商品可售状态

This commit is contained in:
苏尹岚
2019-11-14 18:03:34 +08:00
parent 3da95b29f8
commit bcc534289a
5 changed files with 83 additions and 50 deletions

View File

@@ -47,13 +47,6 @@ var (
"22:00:00",
}
ChangeStoreSkuSaleStatusList = []string{
"0:00:00",
"1:00:00",
"2:00:00",
"3:00:00",
"4:00:00",
"5:00:00",
"6:00:00",
"7:00:00",
"8:00:00",
"9:00:00",
@@ -68,9 +61,6 @@ var (
"18:00:00",
"19:00:00",
"20:00:00",
"21:00:00",
"22:00:00",
"23:00:00",
}
openRemoteStoreTimeList = []string{
"23:30:00",
@@ -144,7 +134,7 @@ func Init() {
"04:05:06",
})
ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, false, false)
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, true, false)
}, ChangeStoreSkuSaleStatusList)
}
}