|
|
@@ -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() |
|
|
|