fix(log): correct model reference in SystemLog creation

This commit is contained in:
Chang lue Tsen 2025-09-27 10:11:58 -04:00
parent 56352de870
commit 9ce6141b5a

View File

@ -659,7 +659,7 @@ func (l *ActivateOrderLogic) Recharge(ctx context.Context, orderInfo *order.Orde
} }
content, _ := balanceLog.Marshal() content, _ := balanceLog.Marshal()
return tx.Model(&log.Balance{}).Create(&log.SystemLog{ return tx.Model(&log.SystemLog{}).Create(&log.SystemLog{
Type: log.TypeBalance.Uint8(), Type: log.TypeBalance.Uint8(),
Date: time.Now().Format("2006-01-02"), Date: time.Now().Format("2006-01-02"),
ObjectID: userInfo.Id, ObjectID: userInfo.Id,