only send email to user when email enabled globally
This commit is contained in:
@ -79,7 +79,7 @@ const nodemailer = require("nodemailer");
|
|||||||
log.info(
|
log.info(
|
||||||
`${key} - 签到完毕! 原神获得时长:${hk4e_WalletRespond.data.free_time.send_freetime}分钟,总时长:${hk4e_WalletRespond.data.free_time.free_time}分钟`
|
`${key} - 签到完毕! 原神获得时长:${hk4e_WalletRespond.data.free_time.send_freetime}分钟,总时长:${hk4e_WalletRespond.data.free_time.free_time}分钟`
|
||||||
);
|
);
|
||||||
if (hk4e_configs[key].email != null) {
|
if (hk4e_configs[key].email != null && globalConfig.sendMail == true) {
|
||||||
SendResult(
|
SendResult(
|
||||||
transporter,
|
transporter,
|
||||||
globalConfig.mailConfig.user,
|
globalConfig.mailConfig.user,
|
||||||
@ -102,7 +102,7 @@ const nodemailer = require("nodemailer");
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.error(`${key} - 签到失败`);
|
log.error(`${key} - 签到失败`);
|
||||||
if (hk4e_configs[key].email != null) {
|
if (hk4e_configs[key].email != null && globalConfig.sendMail == true) {
|
||||||
SendResult(
|
SendResult(
|
||||||
transporter,
|
transporter,
|
||||||
globalConfig.mailConfig.user,
|
globalConfig.mailConfig.user,
|
||||||
@ -140,7 +140,7 @@ const nodemailer = require("nodemailer");
|
|||||||
log.info(
|
log.info(
|
||||||
`${key} - 签到完毕! 绝区零获得时长:${nap_WalletRespond.data.free_time.send_freetime}分钟,总时长:${nap_WalletRespond.data.free_time.free_time}分钟`
|
`${key} - 签到完毕! 绝区零获得时长:${nap_WalletRespond.data.free_time.send_freetime}分钟,总时长:${nap_WalletRespond.data.free_time.free_time}分钟`
|
||||||
);
|
);
|
||||||
if (nap_configs[key].email != null) {
|
if (nap_configs[key].email != null && globalConfig.sendMail == true) {
|
||||||
SendRnapt(
|
SendRnapt(
|
||||||
transporter,
|
transporter,
|
||||||
globalConfig.mailConfig.user,
|
globalConfig.mailConfig.user,
|
||||||
@ -163,7 +163,7 @@ const nodemailer = require("nodemailer");
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.error(`${key} - 签到失败`);
|
log.error(`${key} - 签到失败`);
|
||||||
if (nap_configs[key].email != null) {
|
if (nap_configs[key].email != null && globalConfig.sendMail == true) {
|
||||||
SendResult(
|
SendResult(
|
||||||
transporter,
|
transporter,
|
||||||
globalConfig.mailConfig.user,
|
globalConfig.mailConfig.user,
|
||||||
|
Reference in New Issue
Block a user