From b8b80ef13d92dd848af53e4bb72ce572503416f0 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 23 Nov 2023 18:12:19 +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 --- rule/appreciation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/appreciation.go b/rule/appreciation.go index 86c1df5..06db8c3 100644 --- a/rule/appreciation.go +++ b/rule/appreciation.go @@ -49,7 +49,7 @@ func DealTransferIn(session *xorm.Session, amount float64) (err error, value flo return } nowValueF := decimal.NewFromFloat(nowValue) - value, _ = amountValue.Div(nowValueF).Float64() + value, _ = amountValue.Div(nowValueF).RoundFloor(4).Float64() return }