feat: able to display quota in dollar

This commit is contained in:
JustSong committed 2023-06-20 20:09:17 +08:00
1 parent b220e8e863
commit a6cc0226a7
19 files changed
+125 -45

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ func Redeem(key string, userId int) (quota int, err error) {
if err != nil {
common.SysError("更新兑换码状态失败:" + err.Error())
}
RecordLog(userId, LogTypeTopup, fmt.Sprintf("通过兑换码充值 %d 点额度", redemption.Quota))
RecordLog(userId, LogTypeTopup, fmt.Sprintf("通过兑换码充值 %s", common.LogQuota(redemption.Quota)))
}()
return redemption.Quota, nil
}