fix(balance): add timestamp to balance logs for payment, refund, and recharge transactions

This commit is contained in:
Chang lue Tsen
2025-09-05 09:29:19 -04:00
parent 71d32d73bb
commit 3199dc5141
3 changed files with 15 additions and 12 deletions
+5 -4
View File
@@ -622,10 +622,11 @@ func (l *ActivateOrderLogic) Recharge(ctx context.Context, orderInfo *order.Orde
}
balanceLog := &log.Balance{
Amount: orderInfo.Price,
Type: CommissionTypeRecharge,
OrderId: orderInfo.Id,
Balance: userInfo.Balance,
Amount: orderInfo.Price,
Type: CommissionTypeRecharge,
OrderId: orderInfo.Id,
Balance: userInfo.Balance,
Timestamp: time.Now().UnixMilli(),
}
content, _ := balanceLog.Marshal()