From 2762f106499295aadbebe936e827a8e8e120ff00 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 11:18:17 +0800 Subject: [PATCH] 1 --- business/jxstore/misc/misc.go | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index a892c7d04..61d27a929 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -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() {