From 79ec62e33b91f8adb537f324d5991492ff5d3f34 Mon Sep 17 00:00:00 2001 From: goldensea Date: Tue, 6 Jan 2026 17:52:49 +0800 Subject: [PATCH] =?UTF-8?q?debug=E6=A8=A1=E5=BC=8F=E4=B8=8D=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/gamelog/sdk.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/gamelog/sdk.go b/package/gamelog/sdk.go index e852d22..22d4d1b 100644 --- a/package/gamelog/sdk.go +++ b/package/gamelog/sdk.go @@ -312,6 +312,9 @@ const datetimeFmt = time.DateOnly + " " + time.TimeOnly // 记录日志 func (sdk *SDK) Log(uid, event string, property map[string]any, timezone string, customEventTime ...time.Time) { + if g.Cfg().MustGet(ctx, "debug").Bool() { + return + } loc := time.Local if _loc := getLocationMapValue(timezone); _loc != nil { loc = _loc