log content contains config name

This commit is contained in:
2023-10-20 23:04:16 +08:00
parent 6bcb19e8e1
commit 41280019f6
2 changed files with 6 additions and 4 deletions

View File

@@ -166,7 +166,7 @@ exports.SendLog = function (
);
};
exports.SendResult = function (transporter, mailfrom, mailto, content) {
exports.SendResult = function (transporter, mailfrom, mailto, content, key) {
transporter.sendMail(
{
from: `"Genshin Cloud Game Helper" <${mailfrom}>`, //邮件来源
@@ -178,7 +178,7 @@ exports.SendResult = function (transporter, mailfrom, mailto, content) {
if (error) {
return console.log(error);
}
log.info(`已发送通知至${mailto}`);
log.info(`${key} - 已发送通知至${mailto}`);
}
);
};