From 02c992d6ee6d9ed44acc745c07f53a5fdf8a3675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 14 Dec 2021 15:13:24 +0800 Subject: [PATCH] 123 --- business/partner/purchase/ebai/store_sku2.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/business/partner/purchase/ebai/store_sku2.go b/business/partner/purchase/ebai/store_sku2.go index 725d0beae..49b285f4e 100644 --- a/business/partner/purchase/ebai/store_sku2.go +++ b/business/partner/purchase/ebai/store_sku2.go @@ -397,11 +397,12 @@ func (p *PurchaseHandler) UpdateStoreSkusStock(ctx *jxcontext.Context, vendorOrg func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isExd bool) (params map[string]interface{}) { var img string - if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) { - img = storeSku.ImgMix - } else { - img = storeSku.Img - } + var imgdata []byte + //if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) { + // img = storeSku.ImgMix + //} else { + img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata) + //} photos := []map[string]interface{}{ map[string]interface{}{ "is_master": 1,