CaculateSkuEarningPrice中调用ConstrainPayPercentage

+RefreshOrdersPriceInfo
This commit is contained in:
gazebo
2020-01-03 15:56:02 +08:00
parent d7aa244528
commit e89af0849e
5 changed files with 83 additions and 1 deletions

View File

@@ -487,6 +487,7 @@ func CaculateSkuEarningPrice(shopPrice, salePrice int64, storePayPercentage int)
if salePrice == 0 || shopPrice > 0 && shopPrice < earningPrice {
earningPrice = shopPrice
}
storePayPercentage = ConstrainPayPercentage(storePayPercentage)
if storePayPercentage <= 0 {
storePayPercentage = model.DefaultEarningPricePercentage
}