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{}) {
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,