Dispute模块:修复wallet.Entry调用
修复内容:
- 将仲裁释放冻结金额的wallet.Entry从Amount改为AmountCent
- 将号主收入的wallet.Entry从Amount改为AmountCent
- 使用int64(math.Round(amount * 100))将元转为分
编译验证通过 ✅
This commit is contained in:
@@ -358,7 +358,7 @@ func buildArbitrationSettlement(order model.RentalOrder, req ArbitrateRequest, r
|
|||||||
UserID: order.RenterID,
|
UserID: order.RenterID,
|
||||||
OrderID: &orderID,
|
OrderID: &orderID,
|
||||||
Direction: "out",
|
Direction: "out",
|
||||||
Amount: releaseFrozenAmount,
|
AmountCent: int64(math.Round(releaseFrozenAmount * 100)),
|
||||||
BalanceType: "frozen",
|
BalanceType: "frozen",
|
||||||
BizType: "arbitration_release_frozen",
|
BizType: "arbitration_release_frozen",
|
||||||
BizNo: order.OrderNo,
|
BizNo: order.OrderNo,
|
||||||
@@ -381,7 +381,7 @@ func buildArbitrationSettlement(order model.RentalOrder, req ArbitrateRequest, r
|
|||||||
UserID: order.OwnerID,
|
UserID: order.OwnerID,
|
||||||
OrderID: &orderID,
|
OrderID: &orderID,
|
||||||
Direction: "in",
|
Direction: "in",
|
||||||
Amount: amount,
|
AmountCent: int64(math.Round(amount * 100)),
|
||||||
BalanceType: "available",
|
BalanceType: "available",
|
||||||
BizType: "arbitration_owner_income",
|
BizType: "arbitration_owner_income",
|
||||||
BizNo: order.OrderNo,
|
BizNo: order.OrderNo,
|
||||||
|
|||||||
Reference in New Issue
Block a user