- AutoSaleStoreSku添加参数isNeedSync控制是否主动同步,定时任务不需要,因为马上就是每晚的定时同步
This commit is contained in:
@@ -45,23 +45,8 @@ var (
|
||||
"00:01:00",
|
||||
}
|
||||
|
||||
autoEnableStoreSkuTimeList = []string{
|
||||
"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",
|
||||
autoSaleStoreSkuTimeList = []string{
|
||||
"20:50:00",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -91,8 +76,8 @@ func Init() {
|
||||
}, updateActStatusTimeList)
|
||||
}
|
||||
ScheduleTimerFunc(func() {
|
||||
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil)
|
||||
}, autoEnableStoreSkuTimeList)
|
||||
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
|
||||
}, autoSaleStoreSkuTimeList)
|
||||
}
|
||||
|
||||
func doDailyWork() {
|
||||
|
||||
Reference in New Issue
Block a user