图片额外信息

This commit is contained in:
苏尹岚
2020-06-17 09:46:52 +08:00
parent 2324f0487b
commit 89dd8bc20b
5 changed files with 24 additions and 10 deletions

View File

@@ -164,8 +164,13 @@ func skuInfo2Param(ctx *jxcontext.Context, sku *dao.StoreSkuSyncInfo) (param *jd
FixedStatus: jxStatus2jdStatus(sku.MergedStatus),
IsSale: jdapi.IsSaleNo, // todo ?
Upc: sku.Upc,
Images: jxutils.BatchString2Slice(sku.Img, sku.Img2),
Upc: sku.Upc,
// Images: jxutils.BatchString2Slice(sku.Img, sku.Img2),
}
if sku.ImgWatermark != "" {
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2)
} else {
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2)
}
if param.CategoryID == 0 {
param.CategoryID = int64(getDefJdCategoryID())