From 102966d01f1b01533f4d4c8d8e21065f8ca19c09 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 23 Apr 2019 10:21:16 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=88=91=E4=BB=AC=E7=9A=84=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E6=8D=A2=E7=AE=97=EF=BC=8C=E4=B9=8B=E5=89=8D500?= =?UTF-8?q?=E5=85=8B=E4=BB=A5=E4=B8=8B=E7=9A=84=E6=B6=A8=E4=BB=B7=E9=82=A3?= =?UTF-8?q?=E4=B8=AA=EF=BC=8C10%-20%=EF=BC=8C=E5=88=87=E6=8D=A2=E4=B8=BA5%?= =?UTF-8?q?-10%=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxutils/jxutils_cms.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxutils/jxutils_cms.go b/business/jxutils/jxutils_cms.go index ef086b531..27d20d07a 100644 --- a/business/jxutils/jxutils_cms.go +++ b/business/jxutils/jxutils_cms.go @@ -163,9 +163,9 @@ func CaculateSkuPrice(unitPrice int, specQuality float32, specUnit string, skuNa } price := int(math.Round(float64(float32(unitPrice) * specQuality / 500))) if specQuality < 250 { - price = price * 120 / 100 - } else if specQuality < 500 { price = price * 110 / 100 + } else if specQuality < 500 { + price = price * 105 / 100 } if price <= 0 { price = 1