This commit is contained in:
苏尹岚
2021-03-17 17:35:40 +08:00
parent e0a1393eee
commit f0d41bc043
6 changed files with 84 additions and 16 deletions

View File

@@ -172,9 +172,9 @@ func skuInfo2Param(ctx *jxcontext.Context, sku *dao.StoreSkuSyncInfo) (param *jd
param.ShopCategories = append(param.ShopCategories, utils.Str2Int64(sku.VendorCatID))
}
if sku.ImgMix != "" {
param.Images = jxutils.BatchString2Slice(sku.ImgMix, sku.Img2, sku.Img3)
param.Images = jxutils.BatchString2Slice(sku.ImgMix, sku.Img2, sku.Img3, sku.Img4, sku.Img5)
} else {
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2, sku.Img3)
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2, sku.Img3, sku.Img4, sku.Img5)
}
if param.CategoryID == 0 {