Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
f49c8849bc
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      md/appreciation.go
  2. +1
    -0
      rule/appreciation.go

+ 1
- 0
md/appreciation.go View File

@@ -9,6 +9,7 @@ var (
)

type DealWithdrawalAndDestroyResp struct {
Price float64 `json:"price"` //价值
TransferOut float64 `json:"transfer_out"` //提现的积分
TransferOutValue float64 `json:"transfer_out_value"` //提现的余额
AmountOut float64 `json:"amount_out"` //手续费


+ 1
- 0
rule/appreciation.go View File

@@ -81,6 +81,7 @@ func DealWithdrawalAndDestroy(session *xorm.Session, feeMap md.DealWithdrawalFee
return
}
resp.TransferOut = transferOut
resp.Price = nowValue
resp.TransferOutValue, _ = decimal.NewFromFloat(transferOut).Mul(decimal.NewFromFloat(nowValue)).Float64()
resp.AmountOut, _ = transferOutValue.Mul(decimal.NewFromFloat(nowValue)).Float64()
resp.DestroyValue, _ = destroyValue.Float64()


Loading…
Cancel
Save