From ce2c6f89671b714a7ab83e68a9dbc91ae91901bf Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 23 Nov 2022 15:34:18 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v3.9.4=20=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E9=87=8A=E6=94=BE=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svc/svc_integral_release.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/svc/svc_integral_release.go b/svc/svc_integral_release.go index 1169b91..ecf8a8b 100644 --- a/svc/svc_integral_release.go +++ b/svc/svc_integral_release.go @@ -242,18 +242,15 @@ func CalReturnAmountAndRatio(level, ownbuyReturnType int, userType string, fee, return commission, commissionRatio, amountList, ratioList } func getfee(fee float64, commArr map[string]string) float64 { - newfee := fee if zhios_order_relate_utils.StrToFloat64(commArr["alipayServiceChargeRate"]) > 0 { - newfee = fee - fee*zhios_order_relate_utils.StrToFloat64(commArr["alipayServiceChargeRate"]) + fee = fee - fee*zhios_order_relate_utils.StrToFloat64(commArr["alipayServiceChargeRate"]) } + newfee := fee * zhios_order_relate_utils.StrToFloat64(commArr["distributableCoefficientRate"]) if zhios_order_relate_utils.StrToFloat64(commArr["taxRevenueRate"]) > 0 { - newfee = newfee - newfee*zhios_order_relate_utils.StrToFloat64(commArr["taxRevenueRate"]) + newfee = newfee - fee*zhios_order_relate_utils.StrToFloat64(commArr["taxRevenueRate"]) } if zhios_order_relate_utils.StrToFloat64(commArr["operatingExpenseRate"]) > 0 { - newfee = newfee - newfee*zhios_order_relate_utils.StrToFloat64(commArr["operatingExpenseRate"]) - } - if zhios_order_relate_utils.StrToFloat64(commArr["distributableCoefficientRate"]) > 0 { - newfee = newfee - newfee*zhios_order_relate_utils.StrToFloat64(commArr["distributableCoefficientRate"]) + newfee = newfee - fee*zhios_order_relate_utils.StrToFloat64(commArr["operatingExpenseRate"]) } return newfee }