图片额外信息

This commit is contained in:
苏尹岚
2020-06-17 10:54:53 +08:00
parent 89dd8bc20b
commit c42fff254b
4 changed files with 23 additions and 3 deletions

View File

@@ -167,11 +167,12 @@ func skuInfo2Param(ctx *jxcontext.Context, sku *dao.StoreSkuSyncInfo) (param *jd
Upc: sku.Upc,
// Images: jxutils.BatchString2Slice(sku.Img, sku.Img2),
}
if sku.ImgWatermark != "" {
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2)
if sku.ImgMix != "" {
param.Images = jxutils.BatchString2Slice(sku.ImgMix, sku.Img2)
} else {
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2)
}
if param.CategoryID == 0 {
param.CategoryID = int64(getDefJdCategoryID())
}