From cd86a5e4465bd311c6632eb271b80076c6991ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 23 Apr 2020 17:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=95=86=E5=93=81=E5=BA=93?= =?UTF-8?q?=E4=BA=AC=E4=B8=9Cid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index edcc0bdc9..2759a04b5 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -2211,10 +2211,13 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) { } } for _, v := range searchResults { - if v.JdID == 2033469456 { + if v.SkuID == 6042327 { continue } - if v.JdID != 2033453015 { + if v.SkuID == 6042324 { + continue + } + if v.SkuID != 6042319 { continue } param := &jdapi.OpSkuParam{ @@ -2228,11 +2231,7 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) { continue } time.Sleep(time.Second) - _, err = api.JdAPI.RefreshJdDepot(v.JdID) - if err != nil { - globals.SugarLogger.Debugf("RefreshJdDepot RefreshJdDepot", err.Error()) - continue - } + api.JdAPI.RefreshJdDepot(v.JdID) sql := ` UPDATE thing_map SET vendor_thing_id = ?, sync_status = ? WHERE thing_type = ? AND vendor_id = ? AND vendor_org_code = ? AND deleted_at = ? AND thing_id = ?