This commit is contained in:
邹宗楠
2023-08-03 18:40:14 +08:00
parent a13e3cfb82
commit e561f3622f

View File

@@ -515,10 +515,20 @@ func Init() {
100123,
100115,
}
globals.SugarLogger.Debugf("==================================1")
syncStoreSkuTao(hangzhou)
}, []string{
"18:37:00",
"18:50:00",
"20:50:00",
"22:50:00",
"00:50:00",
"02:50:00",
"04:50:00",
"06:50:00",
"08:50:00",
"10:50:00",
"12:50:00",
"14:50:00",
"16:50:00",
})
// 刷新抖音门店token
@@ -876,8 +886,6 @@ var syncLen = 0
// syncStoreSkuTao 同步商品到淘鲜达
func syncStoreSkuTao(beijin []int) {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", "开始了:"+utils.Format4Output(beijin[syncLen:syncLen+5], false))
globals.SugarLogger.Debugf("==================================2")
syncFlag := 0
task := tasksch.NewParallelTask("同步京西商品到淘鲜达平台,方案二使用", nil, jxcontext.AdminCtx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
@@ -887,7 +895,6 @@ func syncStoreSkuTao(beijin []int) {
switch step {
case 0:
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达消息:", utils.Format4Output(beijin[syncLen:syncLen+5], false))
globals.SugarLogger.Debugf("==================================1 := %s", 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)
case 1: