This commit is contained in:
suyl
2021-07-07 17:54:11 +08:00
parent 106caf9666
commit 2026d07e47

View File

@@ -514,7 +514,11 @@ func CaculateSkuEarningPrice(shopPrice, salePrice int64, storePayPercentage int)
}
}
} else {
earningPrice = shopPrice
if shopPrice == 0 {
earningPrice = salePrice * 70 / 100
} else {
earningPrice = shopPrice
}
}
storePayPercentage = ConstrainPayPercentage(storePayPercentage)
if storePayPercentage <= 0 {