Commit 0e0f8ee2 by mushishixian

fix

parent 6d7b368c
Showing with 7 additions and 1 deletions
......@@ -205,7 +205,13 @@ func MatchGoodsInfo(goods model.ApiGoods, goodsMap GoodsMap) (bomMatching model.
//需要用于获取价格的阶梯价
if bomMatching.Number < price.Purchases {
//ladder = price
ladder = goods.LadderPrice[key-1]
var index int
if key == 0 {
index = 0
} else {
index = key - 1
}
ladder = goods.LadderPrice[index]
break
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment