From 3b9144ab4b25ee840732be6e97072d9c662dbb6c Mon Sep 17 00:00:00 2001 From: mooring Date: Tue, 3 Jun 2025 21:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E8=BF=9B=E7=BB=9F=E4=B8=80=E4=B8=BAta?= =?UTF-8?q?b?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/report/webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/report/webhook.go b/backend/internal/report/webhook.go index 1b81149..0909637 100644 --- a/backend/internal/report/webhook.go +++ b/backend/internal/report/webhook.go @@ -207,8 +207,8 @@ func NotifyWebHook(params map[string]any) error { config.Data = strings.ReplaceAll(config.Data, "\n", `\n`) if !json.Valid([]byte(config.Data)) { - return fmt.Errorf("通知主题或通知内容包含特殊字符,消息配置字段替换失败") - } + return fmt.Errorf("通知主题或通知内容包含特殊字符,消息配置字段替换失败") + } reporter := NewWebHookReporter(&config, logger) httpctx := context.Background()