京东平台,不为份的SKU,如果没有设置upc,自动生成一个假的
This commit is contained in:
@@ -168,9 +168,9 @@ func skuInfo2Param(ctx *jxcontext.Context, sku *dao.StoreSkuSyncInfo) (param *jd
|
|||||||
Images: jxutils.BatchString2Slice(sku.Img, sku.Img2),
|
Images: jxutils.BatchString2Slice(sku.Img, sku.Img2),
|
||||||
}
|
}
|
||||||
// 不为份的SKU,如果没有设置upc,自动生成一个假的
|
// 不为份的SKU,如果没有设置upc,自动生成一个假的
|
||||||
// if sku.Unit != model.SpecialUnit && param.Upc == "" {
|
if sku.Unit != model.SpecialUnit && param.Upc == "" {
|
||||||
// param.Upc = jxutils.GenFakeUPC(sku.SkuID)
|
param.Upc = jxutils.GenFakeUPC(sku.SkuID)
|
||||||
// }
|
}
|
||||||
if param.CategoryID == 0 {
|
if param.CategoryID == 0 {
|
||||||
param.CategoryID = int64(getDefJdCategoryID())
|
param.CategoryID = int64(getDefJdCategoryID())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user