Commit e338a8c8 by 杨树贤

fix

parent 16acc508
Showing with 3 additions and 0 deletions
...@@ -435,6 +435,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku { ...@@ -435,6 +435,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
} else { } else {
//价格阶梯数量超过最利润点的层级的情况 //价格阶梯数量超过最利润点的层级的情况
for i := 0; i < 9; i++ { for i := 0; i < 9; i++ {
if len(sku.LadderPrice) <= i {
break
}
ladder := sku.LadderPrice[i] ladder := sku.LadderPrice[i]
// 阶梯数量系数正序取 // 阶梯数量系数正序取
priceRatio := priceRatioList[i] priceRatio := priceRatioList[i]
......
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