This commit is contained in:
邹宗楠
2023-08-03 11:18:17 +08:00
parent afba6af10c
commit 2762f10649

View File

@@ -591,22 +591,7 @@ func Init() {
}
syncStoreSkuTao(hangzhou)
}, []string{
"00:30:00",
"01:30:00",
"02:30:00",
"03:30:00",
"04:30:00",
"05:30:00",
"06:30:00",
"07:30:00",
"08:30:00",
"09:10:00",
"09:40:00",
"10:10:00",
"10:30:00",
"11:10:00",
"11:40:00",
"12:10:00",
"11:22:00",
"12:40:00",
})
}
@@ -975,8 +960,8 @@ func syncStoreSkuTao(beijin []int) {
switch step {
case 0:
if beego.BConfig.RunMode != "jxgy" {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+5], false))
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true)
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+20], false))
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+20], false, nil, nil, syncFlag, true, true)
errList.AddErr(err)
}
case 1:
@@ -987,7 +972,7 @@ func syncStoreSkuTao(beijin []int) {
return retVal, err
}, []int{0, 1})
tasksch.HandleTask(task, nil, true).Run()
syncLen += 5
syncLen += 20
}
func doDailyWork2() {