aa
This commit is contained in:
@@ -513,9 +513,13 @@ func CaculateSkuEarningPrice(shopPrice, salePrice int64, storePayPercentage int)
|
|||||||
earningPrice = shopPrice
|
earningPrice = shopPrice
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if shopPrice == 0 {
|
||||||
|
earningPrice = salePrice * 70 / 100
|
||||||
} else {
|
} else {
|
||||||
earningPrice = shopPrice
|
earningPrice = shopPrice
|
||||||
}
|
}
|
||||||
|
}
|
||||||
storePayPercentage = ConstrainPayPercentage(storePayPercentage)
|
storePayPercentage = ConstrainPayPercentage(storePayPercentage)
|
||||||
if storePayPercentage <= 0 {
|
if storePayPercentage <= 0 {
|
||||||
storePayPercentage = model.DefaultEarningPricePercentage
|
storePayPercentage = model.DefaultEarningPricePercentage
|
||||||
|
|||||||
Reference in New Issue
Block a user