美团同步price

This commit is contained in:
苏尹岚
2020-09-29 17:57:48 +08:00
parent 7287cf47d1
commit be3114081c

View File

@@ -259,7 +259,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
foodData["name"] = utils.LimitUTF8StringLen(utils.FilterEmoji(storeSku.SkuName), mtwmapi.MaxSkuNameCharCount)
foodData["description"] = storeSku.Comment
// if isNeedUpdatePrice {
foodData["price"] = jxutils.IntPrice2Standard(storeSku.VendorPrice)
// foodData["price"] = jxutils.IntPrice2Standard(storeSku.VendorPrice)
// }
if storeSku.MinOrderCount != 0 {
foodData["min_order_count"] = storeSku.MinOrderCount
@@ -302,7 +302,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
}
skus[0]["spec"] = jxutils.ComposeSkuSpec(storeSku.SpecQuality, storeSku.SpecUnit)
// if isNeedUpdatePrice {
skus[0]["price"] = foodData["price"]
// skus[0]["price"] = foodData["price"]
// }
skus[0]["stock"] = stockCount2Mtwm(model.MaxStoreSkuStockQty)
if storeSku.Upc != "" {