From 94900ec7537aac60f9ff9cbc12bae6d3da6ac43e Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 23 Jan 2024 12:05:52 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=B8=80=E4=B8=AA=E5=9C=88=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md/fin_user_flow.go | 2 ++ .../one_circles_available_green_energy_settlement.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/md/fin_user_flow.go b/md/fin_user_flow.go index 7595cd2..f804030 100644 --- a/md/fin_user_flow.go +++ b/md/fin_user_flow.go @@ -22,6 +22,8 @@ const ( IntegralReleaseServiceRevenueOrderRefundTypeForFinUserFlow = 51 // 积分释放-服务收益退款 ConsumeSubsidyOrdActionForFinUserFlow = 110 // 消费补贴-收益 ExperienceSubsidyOrdActionForFinUserFlow = 111 // 体验补贴-收益 + GreenEnergyExchangeForBalanceForFinUserFlow = 112 // 绿色能量兑换余额 + BalanceExchangeForGreenEnergyForFinUserFlow = 113 // 余额兑换绿色能量 ) const DealUserAmountRequestIdPrefix = "%s:deal_user_amount:%d" diff --git a/rule/one_circles/one_circles_available_green_energy_settlement.go b/rule/one_circles/one_circles_available_green_energy_settlement.go index a5bfb98..813ace3 100644 --- a/rule/one_circles/one_circles_available_green_energy_settlement.go +++ b/rule/one_circles/one_circles_available_green_energy_settlement.go @@ -67,7 +67,7 @@ func CalcPriceReductionFormula(engine *xorm.Engine, userExchangeNumsValue string greenEnergyValues := userExchangeNums.Mul(afterPrice) //绿色能量个数 greenEnergyFeeValues := greenEnergyValues.Mul(exchangeAccountBalanceFee.Div(decimalRate)) //绿色能量个数扣除手续费 - values = greenEnergyValues.Sub(greenEnergyFeeValues).Truncate(8).String() //用户得到绿色能量个数 + values = greenEnergyValues.Sub(greenEnergyFeeValues).Truncate(8).String() //扣除用户绿色能量个数 greenEnergy = greenEnergyValues.Truncate(8).String() greenEnergyFee = greenEnergyFeeValues.Truncate(8).String() nowPriceValue = nowPrice.String()