Commit e3c0ca23 by 杨树贤

修复bug

parent d077b38e
Showing with 3 additions and 0 deletions
...@@ -347,6 +347,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku { ...@@ -347,6 +347,9 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
} else { } else {
//fmt.Println(ladderPriceRatio) //fmt.Println(ladderPriceRatio)
ladderCount := len(sku.LadderPrice) ladderCount := len(sku.LadderPrice)
if len(priceRatioList) == 0 {
return sku
}
//走阶梯价 //走阶梯价
if ladderCount <= ladderPriceMiniProfitLevel { if ladderCount <= ladderPriceMiniProfitLevel {
for i := 0; i < ladderCount; i++ { for i := 0; i < ladderCount; 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