- getSkuSalePrice2中四舍五入

This commit is contained in:
gazebo
2019-06-12 12:05:54 +08:00
parent 0d6cd4216e
commit 780aad7022

View File

@@ -244,7 +244,7 @@ func getSkuSalePrice2(product *ebaiapi.OrderProductInfo) (salePrice int) {
if skuCount == 0 {
skuCount = product.Number
}
salePrice -= (v.BaiduRate + v.ShopRate) / skuCount // 饿百同一SKU的优惠与非优惠没有拆开平均摊销处理
salePrice -= int(math.Round(float64(v.BaiduRate+v.ShopRate) / float64(skuCount))) // 饿百同一SKU的优惠与非优惠没有拆开平均摊销处理
}
}
}