From 2026d07e471af5551c512ef2f88719462bfd611b Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 7 Jul 2021 17:54:11 +0800 Subject: [PATCH] aa --- business/jxutils/jxutils_cms.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxutils/jxutils_cms.go b/business/jxutils/jxutils_cms.go index 1f93aba03..6605bb5cb 100644 --- a/business/jxutils/jxutils_cms.go +++ b/business/jxutils/jxutils_cms.go @@ -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 {