Commit ca83398c by 杨树贤

取整

parent be7509ac
Showing with 2 additions and 2 deletions
......@@ -793,7 +793,7 @@ func (ps *PriceService) GetActivityPrice(sku model.LySku) model.LySku {
var tempAcPrice float64
if sku.OrgId == 3 {
tempAcPrice = c.MyRound(c.MulFloat(price.PriceCn, sku.Ratio/100), 2)
tempAcPrice = c.MyRound(c.MulFloat(price.PriceCn, sku.Ratio/100), 0)
} else {
tempAcPrice = c.MyRound(c.MulFloat(price.PriceCn, sku.Ratio/100), 4)
}
......@@ -808,7 +808,7 @@ func (ps *PriceService) GetActivityPrice(sku model.LySku) model.LySku {
price.PriceAc = tempAcPrice
var priceAcUs float64
if sku.OrgId == 3 {
priceAcUs = c.MyRound(c.MulFloat(price.PriceUs, sku.RatioUs/100), 2)
priceAcUs = c.MyRound(c.MulFloat(price.PriceUs, sku.RatioUs/100), 0)
} else {
priceAcUs = c.MyRound(c.MulFloat(price.PriceUs, sku.RatioUs/100), 4)
}
......
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