美团更新价格

This commit is contained in:
苏尹岚
2020-09-25 13:55:11 +08:00
parent 0e31417664
commit 1d6e2ae9f2

View File

@@ -301,9 +301,9 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
// foodData["tag_id"] = utils.Int64ToStr(defVendorCatID)
}
skus[0]["spec"] = jxutils.ComposeSkuSpec(storeSku.SpecQuality, storeSku.SpecUnit)
// if isNeedUpdatePrice {
skus[0]["price"] = foodData["price"]
// }
if isNeedUpdatePrice {
skus[0]["price"] = foodData["price"]
}
skus[0]["stock"] = stockCount2Mtwm(model.MaxStoreSkuStockQty)
if storeSku.Upc != "" {
skus[0]["upc"] = storeSku.Upc