From 8333d203db3563a4451c5b5a98bab6b4c31b95cf Mon Sep 17 00:00:00 2001 From: admin <362324317@qq.com> Date: Sun, 17 May 2026 22:46:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20applyTemplate=E7=94=A8=3F=3F=E6=9B=BF?= =?UTF-8?q?=E4=BB=A3||=E9=81=BF=E5=85=8D=E7=A9=BA=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E8=A2=AB=E5=9B=9E=E9=80=80=E4=B8=BA=E5=8D=A0=E4=BD=8D?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source_clean/src/cloud/notification.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source_clean/src/cloud/notification.service.ts b/source_clean/src/cloud/notification.service.ts index 6faa931..aecd3bc 100644 --- a/source_clean/src/cloud/notification.service.ts +++ b/source_clean/src/cloud/notification.service.ts @@ -92,7 +92,7 @@ export function notifyInfo(title: string, detail: string): void { } function applyTemplate(template: string, vars: Record): string { - return template.replace(/\{([^}]+)\}/g, (_, key) => vars[key] || '{' + key + '}'); + return template.replace(/\{([^}]+)\}/g, (_, key) => vars[key] ?? '{' + key + '}'); } function getEventTemplates(): Record {