feat: able to disable quota consumption recording (close #156)

This commit is contained in:
JustSong
2023-06-15 16:32:16 +08:00
parent 8d74860fd9
commit 569c124b59
4 changed files with 16 additions and 0 deletions
+3
View File
@@ -22,6 +22,9 @@ const (
)
func RecordLog(userId int, logType int, content string) {
if logType == LogTypeConsume && !common.LogConsumeEnabled {
return
}
log := &Log{
UserId: userId,
CreatedAt: common.GetTimestamp(),