fix(balance): add timestamp to balance logs for payment, refund, and recharge transactions
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user