fix: notifyEvent二次应用模板冲掉已替换变量 → 传递templateVars

This commit is contained in:
2026-05-17 22:43:32 +08:00
parent 1080c530a7
commit a51ffb4de3

View File

@@ -141,7 +141,7 @@ export function notifyConfigEvent(
// Find matching push user by cloud_configs.promotion_account
const pushUser = findPushUserForConfig(configId);
if (!pushUser) {
notifyEvent(eventName, title, content, level);
notifyEvent(eventName, title, content, level, templateVars);
return;
}
@@ -160,7 +160,7 @@ export function notifyConfigEvent(
if (userChannels.length > 0) {
sendToChannels(userChannels, title, content, level).catch(() => {});
} else {
notifyEvent(eventName, title, content, level);
notifyEvent(eventName, title, content, level, templateVars);
}
}