浏览代码

更新

master
huangjiajun 1年前
父节点
当前提交
f49c8849bc
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. +1
    -0
      md/appreciation.go
  2. +1
    -0
      rule/appreciation.go

+ 1
- 0
md/appreciation.go 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存