Merge remote-tracking branch 'origin/mark' into su

This commit is contained in:
苏尹岚
2020-01-07 11:04:54 +08:00
57 changed files with 2348 additions and 934 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
}