Merge remote-tracking branch 'origin/mark' into yonghui

This commit is contained in:
苏尹岚
2019-12-13 16:55:10 +08:00
2 changed files with 53 additions and 51 deletions

View File

@@ -168,9 +168,9 @@ func skuInfo2Param(ctx *jxcontext.Context, sku *dao.StoreSkuSyncInfo) (param *jd
Images: jxutils.BatchString2Slice(sku.Img, sku.Img2),
}
// 不为份的SKU如果没有设置upc自动生成一个假的
// if sku.Unit != model.SpecialUnit && param.Upc == "" {
// param.Upc = jxutils.GenFakeUPC(sku.SkuID)
// }
if sku.Unit != model.SpecialUnit && param.Upc == "" {
param.Upc = jxutils.GenFakeUPC(sku.SkuID)
}
if param.CategoryID == 0 {
param.CategoryID = int64(getDefJdCategoryID())
}