Commit da057ac7 by 杨树贤

bug

parent 17ffef31
Showing with 3 additions and 1 deletions
......@@ -341,7 +341,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
for index, price := range sku.OriginalPrice {
priceCnNoTax := c.MulFloat(price.PriceUs, usdRatio)
if index == 0 {
costNoTax = priceCnNoTax
costNoTax = pripriceCnNoTax
}
originalPrice = append(originalPrice, model.OriginPrice{
Purchases: price.Purchases,
......@@ -355,6 +355,8 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
}
}
sku.CostNoTax = costNoTax
//判断redis里面是否有成本价,有的话,那就直接去取价格,不需要生成阶梯价
//如果没有成本价字段,就要去生成阶梯价格
if len(ladderPrice) > 0 {
......
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