美团同步price
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user