Skip to content

Commit

Permalink
feat: 记录兑换时兑换码的ID (close #286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Jul 5, 2024
1 parent cf3d894 commit bd72221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/redemption.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bd72221

Please sign in to comment.