From e561f3622fb87e887c0564b9afd36f4755f1422a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 3 Aug 2023 18:40:14 +0800 Subject: [PATCH] 1 --- business/jxstore/misc/misc.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 0430a6410..656c6483b 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -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: