- upc for jd UpdateSkuBaseInfo
This commit is contained in:
@@ -378,6 +378,9 @@ func (p *PurchaseHandler) syncSkuNameAsSpu(db *dao.DaoDB, sku *model.Sku, skuExt
|
||||
params[jdapi.KeyFixedStatus] = jxStatus2jdStatus(sku.Status)
|
||||
params[jdapi.KeyWeight] = jxutils.IntWeight2Float(sku.Weight)
|
||||
params[jdapi.KeySkuPrice] = price
|
||||
if skuExt.Upc != "" {
|
||||
params[jdapi.KeyUpcCode] = skuExt.Upc
|
||||
}
|
||||
if globals.EnableStoreWrite {
|
||||
err = api.JdAPI.UpdateSkuBaseInfo(utils.Int2Str(skuExt.ID), utils.Int2Str(sku.ID), params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user