diff --git a/model/redemption.go b/model/redemption.go index 00ec76b4..0906915a 100644 --- a/model/redemption.go +++ b/model/redemption.go @@ -78,7 +78,7 @@ func Redeem(key string, userId int) (quota int, err error) { if err != nil { return 0, errors.New("兑换失败," + err.Error()) } - RecordLog(userId, LogTypeTopup, fmt.Sprintf("通过兑换码充值 %s", common.LogQuota(redemption.Quota))) + RecordLog(userId, LogTypeTopup, fmt.Sprintf("通过兑换码充值 %s,兑换码ID %d", common.LogQuota(redemption.Quota), redemption.Id)) return redemption.Quota, nil }