diff --git a/md/appreciation.go b/md/appreciation.go index e96d0d4..bb6f04c 100644 --- a/md/appreciation.go +++ b/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"` //手续费 diff --git a/rule/appreciation.go b/rule/appreciation.go index 4b8ac96..377309c 100644 --- a/rule/appreciation.go +++ b/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()