From 4f3be229bdbd352f55a3fa428ab7e26bebd5f3c8 Mon Sep 17 00:00:00 2001 From: yml Date: Tue, 9 Jun 2026 13:54:54 +0800 Subject: [PATCH] =?UTF-8?q?Dispute=E6=A8=A1=E5=9D=97=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dwallet.Entry=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复内容: - 将仲裁释放冻结金额的wallet.Entry从Amount改为AmountCent - 将号主收入的wallet.Entry从Amount改为AmountCent - 使用int64(math.Round(amount * 100))将元转为分 编译验证通过 ✅ --- backend/internal/modules/dispute/repository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/modules/dispute/repository.go b/backend/internal/modules/dispute/repository.go index a90d8c3..8f81ea1 100644 --- a/backend/internal/modules/dispute/repository.go +++ b/backend/internal/modules/dispute/repository.go @@ -358,7 +358,7 @@ func buildArbitrationSettlement(order model.RentalOrder, req ArbitrateRequest, r UserID: order.RenterID, OrderID: &orderID, Direction: "out", - Amount: releaseFrozenAmount, + AmountCent: int64(math.Round(releaseFrozenAmount * 100)), BalanceType: "frozen", BizType: "arbitration_release_frozen", BizNo: order.OrderNo, @@ -381,7 +381,7 @@ func buildArbitrationSettlement(order model.RentalOrder, req ArbitrateRequest, r UserID: order.OwnerID, OrderID: &orderID, Direction: "in", - Amount: amount, + AmountCent: int64(math.Round(amount * 100)), BalanceType: "available", BizType: "arbitration_owner_income", BizNo: order.OrderNo,