- 我们的价格换算,之前500克以下的涨价那个,10%-20%,切换为5%-10%吧
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user