From f49c8849bc4a939c30b70707abeccc9896a3704b Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 28 Nov 2023 08:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md/appreciation.go | 1 + rule/appreciation.go | 1 + 2 files changed, 2 insertions(+) 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()