1
This commit is contained in:
@@ -360,16 +360,16 @@ func Init() {
|
|||||||
//102831,
|
//102831,
|
||||||
//102751,
|
//102751,
|
||||||
//上海
|
//上海
|
||||||
668462,
|
//668462,
|
||||||
668276,
|
//668276,
|
||||||
668180,
|
//668180,
|
||||||
667320,
|
//667320,
|
||||||
667237,
|
//667237,
|
||||||
667231,
|
//667231,
|
||||||
667068,
|
//667068,
|
||||||
667036,
|
//667036,
|
||||||
666678,
|
//666678,
|
||||||
103191,
|
//103191,
|
||||||
103074,
|
103074,
|
||||||
103065,
|
103065,
|
||||||
103051,
|
103051,
|
||||||
@@ -411,20 +411,29 @@ func Init() {
|
|||||||
syncStoreSkuTao(beijin)
|
syncStoreSkuTao(beijin)
|
||||||
}, []string{
|
}, []string{
|
||||||
"00:30:00",
|
"00:30:00",
|
||||||
|
"01:30:00",
|
||||||
"02:30:00",
|
"02:30:00",
|
||||||
|
"03:30:00",
|
||||||
"04:30:00",
|
"04:30:00",
|
||||||
|
"05:30:00",
|
||||||
|
"06:30:00",
|
||||||
"07:30:00",
|
"07:30:00",
|
||||||
"09:20:00",
|
"08:30:00",
|
||||||
"10:40:00",
|
"09:30:00",
|
||||||
"12:55:00",
|
"10:30:00",
|
||||||
|
"11:30:00",
|
||||||
|
"12:30:00",
|
||||||
"13:30:00",
|
"13:30:00",
|
||||||
"14:30:00",
|
"14:30:00",
|
||||||
"15:30:00",
|
"15:30:00",
|
||||||
"16:30:00",
|
"16:30:00",
|
||||||
"17:30:00",
|
"17:30:00",
|
||||||
"18:40:00",
|
"18:30:00",
|
||||||
|
"19:30:00",
|
||||||
"20:30:00",
|
"20:30:00",
|
||||||
|
"21:30:00",
|
||||||
"22:30:00",
|
"22:30:00",
|
||||||
|
"23:30:00",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -795,8 +804,8 @@ func syncStoreSkuTao(beijin []int) {
|
|||||||
switch step {
|
switch step {
|
||||||
case 0:
|
case 0:
|
||||||
if beego.BConfig.RunMode != "jxgy" {
|
if beego.BConfig.RunMode != "jxgy" {
|
||||||
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+5], false))
|
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+3], false))
|
||||||
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+5], false, nil, nil, syncFlag, true, true)
|
_, err = cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, db, []int{model.VendorIDTaoVegetable}, beijin[syncLen:syncLen+], false, nil, nil, syncFlag, true, true)
|
||||||
errList.AddErr(err)
|
errList.AddErr(err)
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
@@ -807,7 +816,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 += 3
|
||||||
}
|
}
|
||||||
|
|
||||||
func doDailyWork2() {
|
func doDailyWork2() {
|
||||||
|
|||||||
Reference in New Issue
Block a user