fix: notifyEvent二次应用模板冲掉已替换变量 → 传递templateVars
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user