Commit 484dc36b by 杨树贤

兼容报错

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