- 我们的价格换算,之前500克以下的涨价那个,10%-20%,切换为5%-10%吧

This commit is contained in:
gazebo
2019-04-23 10:21:16 +08:00
parent 4dcf90e2f6
commit 102966d01f

View File

@@ -163,9 +163,9 @@ func CaculateSkuPrice(unitPrice int, specQuality float32, specUnit string, skuNa
}
price := int(math.Round(float64(float32(unitPrice) * specQuality / 500)))
if specQuality < 250 {
price = price * 120 / 100
} else if specQuality < 500 {
price = price * 110 / 100
} else if specQuality < 500 {
price = price * 105 / 100
}
if price <= 0 {
price = 1