This commit is contained in:
邹宗楠
2021-12-14 15:13:24 +08:00
parent e5446f170f
commit 02c992d6ee

View File

@@ -397,11 +397,12 @@ func (p *PurchaseHandler) UpdateStoreSkusStock(ctx *jxcontext.Context, vendorOrg
func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isExd bool) (params map[string]interface{}) { func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isExd bool) (params map[string]interface{}) {
var img string var img string
if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) { var imgdata []byte
img = storeSku.ImgMix //if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
} else { // img = storeSku.ImgMix
img = storeSku.Img //} else {
} img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata)
//}
photos := []map[string]interface{}{ photos := []map[string]interface{}{
map[string]interface{}{ map[string]interface{}{
"is_master": 1, "is_master": 1,