From bcc1e79f0d2874d70c4d0cc286ed187537e0b2a7 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Sun, 28 Apr 2024 12:10:15 +0800 Subject: [PATCH] update --- .../one_circles_available_green_energy_settlement.go | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 2922f97..05fe5f0 100644 --- a/rule/one_circles/one_circles_available_green_energy_settlement.go +++ b/rule/one_circles/one_circles_available_green_energy_settlement.go @@ -45,6 +45,11 @@ func NewCalcPriceIncreaseFormula(userAmountValue string, oneCirclesGreenEnergyBa values = userAmount.Div(afterPrice).Truncate(8).String() //用户得到绿色能量个数 nowPriceValue = nowPrice.String() afterPriceValue = afterPrice.String() + zhios_order_relate_utils.FilePutContents("virtual_coin_not", zhios_order_relate_utils.SerializeStr(map[string]interface{}{ + "before_price": nowPriceValue, + "after_price": afterPriceValue, + "user_amount": userAmountValue, + })) return } @@ -121,6 +126,12 @@ func CalcPriceReductionFormula(engine *xorm.Engine, userExchangeNumsValue string greenEnergyFee = userExchangeNums.Mul(exchangeAccountBalanceFee.Div(decimalRate)).Truncate(8).String() //绿色能量手续费 nowPriceValue = nowPrice.String() afterPriceValue = afterPrice.String() + + zhios_order_relate_utils.FilePutContents("virtual_coin_not", zhios_order_relate_utils.SerializeStr(map[string]interface{}{ + "before_price": nowPriceValue, + "after_price": afterPriceValue, + "user_amount": userExchangeNumsValue, + })) return }