Dispute模块:修复wallet.Entry调用

修复内容:
- 将仲裁释放冻结金额的wallet.Entry从Amount改为AmountCent
- 将号主收入的wallet.Entry从Amount改为AmountCent
- 使用int64(math.Round(amount * 100))将元转为分

编译验证通过 
This commit is contained in:
yml
2026-06-09 13:54:54 +08:00
parent d803089890
commit 4f3be229bd
@@ -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,