Commit 7ce618a2 by 杨树贤

加入修复逻辑

parent 685a40db
Showing with 3 additions and 2 deletions
package service
import (
"fmt"
"go_sku_server/model"
c "go_sku_server/pkg/common"
"go_sku_server/pkg/gredis"
......@@ -205,11 +204,13 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
priceRatioSortStr := strconv.Itoa(priceRatioSort)
ladderPriceMiniProfitLevel = int(gjson.Get(priceRatioCache, "ladder_price_mini_profit_level."+priceRatioSortStr).Int())
ladderType = int(gjson.Get(priceRatioCache, "type."+priceRatioSortStr).Int())
fmt.Println(priceRatioSortStr)
} else {
ladderPriceMiniProfitLevel = int(gjson.Get(priceRatioCache, "ladder_price_mini_profit_level").Int())
ladderType = 1
}
if ladderType == 0 {
ladderType = 1
}
//fmt.Println("最低利润点阶梯数 : ", ladderPriceMiniProfitLevel)
var generatedLadderPrice []model.LadderPrice
......
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