1
This commit is contained in:
@@ -369,7 +369,7 @@ func Init() {
|
|||||||
"04:30:00",
|
"04:30:00",
|
||||||
"05:30:00",
|
"05:30:00",
|
||||||
"07:30:00",
|
"07:30:00",
|
||||||
"09:30:00",
|
"09:55:00",
|
||||||
"12:30:00",
|
"12:30:00",
|
||||||
"13:30:00",
|
"13:30:00",
|
||||||
"15:30:00",
|
"15:30:00",
|
||||||
@@ -736,7 +736,8 @@ func syncStoreSkuTiktok() {
|
|||||||
tasksch.HandleTask(task, nil, true).Run()
|
tasksch.HandleTask(task, nil, true).Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
var SyncLen = 0 // 同步步长
|
var syncLen = 0
|
||||||
|
|
||||||
// syncStoreSkuTao 同步商品到淘鲜达
|
// syncStoreSkuTao 同步商品到淘鲜达
|
||||||
func syncStoreSkuTao(beijin []int) {
|
func syncStoreSkuTao(beijin []int) {
|
||||||
syncFlag := 0
|
syncFlag := 0
|
||||||
@@ -748,7 +749,8 @@ func syncStoreSkuTao(beijin []int) {
|
|||||||
switch step {
|
switch step {
|
||||||
case 0:
|
case 0:
|
||||||
if beego.BConfig.RunMode != "jxgy" {
|
if beego.BConfig.RunMode != "jxgy" {
|
||||||
_, 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+5], false))
|
||||||
|
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true)
|
||||||
errList.AddErr(err)
|
errList.AddErr(err)
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
@@ -759,7 +761,7 @@ func syncStoreSkuTao(beijin []int) {
|
|||||||
return retVal, err
|
return retVal, err
|
||||||
}, []int{0, 1})
|
}, []int{0, 1})
|
||||||
tasksch.HandleTask(task, nil, true).Run()
|
tasksch.HandleTask(task, nil, true).Run()
|
||||||
SyncLen += 5
|
syncLen += 5
|
||||||
}
|
}
|
||||||
|
|
||||||
func doDailyWork2() {
|
func doDailyWork2() {
|
||||||
|
|||||||
Reference in New Issue
Block a user