定时修改商品可售状态

This commit is contained in:
苏尹岚
2019-11-14 11:45:16 +08:00
parent 32eb1a6dbe
commit e15e7ed9e2
4 changed files with 93 additions and 1 deletions

View File

@@ -46,6 +46,32 @@ var (
"19:00:00",
"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",
"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",
"23:00:00",
}
openRemoteStoreTimeList = []string{
"23:30:00",
}
@@ -117,6 +143,9 @@ func Init() {
}, []string{
"04:05:06",
})
ScheduleTimerFunc("ChangeStoreSkuSaleStatus", func() {
cms.CurVendorSync.ChangeStoreSkuSaleStatus(jxcontext.AdminCtx, false, false)
}, ChangeStoreSkuSaleStatusList)
}
}