Commit 6a8ec864 by 杨树贤

fix

parent 821da7fd
Showing with 3 additions and 0 deletions
......@@ -327,6 +327,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
if costMapIndex <= 0 {
costMapIndex = 0
}
if costMapIndex >= len(priceRatioList) {
return sku
}
priceRatioAndPurchases = priceRatioList[costMapIndex]
priceCnRatio := priceRatioAndPurchases.Ratio
priceUsRatio := priceRatioAndPurchases.RatioUsd
......
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