log content

This commit is contained in:
Zichao Lin 2023-10-20 22:46:48 +08:00
parent 2dbcab998f
commit ee3321c7e8
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB
2 changed files with 6 additions and 6 deletions

@ -67,9 +67,9 @@ exports.getGlobalConfig = function () {
var globalConfig = fs.readFileSync("global.json");
} catch (e) {
if (e.toString().includes("Error: ENOENT: no such file or directory")) {
log.error(`读取配置失败!找不到全局配置文件`);
log.error(`读取配置失败找不到全局配置文件`);
} else {
log.error(`读取配置失败!错误信息:${e}`);
log.error(`读取配置失败错误信息:${e}`);
}
exit();
}
@ -84,9 +84,9 @@ exports.getConfigs = function () {
if (
e == "Error: ENOENT: no such file or directory, scandir 'configs'"
) {
log.error(`读取配置失败!找不到configs文件夹`);
log.error(`读取配置失败找不到configs文件夹`);
} else {
log.error(`读取配置失败!错误信息:${e}`);
log.error(`读取配置失败错误信息:${e}`);
}
exit();
}

@ -63,14 +63,14 @@ const nodemailer = require("nodemailer");
);
successNum++;
log.info(
`签到完毕! 获得时长:${WalletRespond.data.free_time.send_freetime}分钟,总时长:${WalletRespond.data.free_time.free_time}分钟`
`签到完毕! 获得时长:${WalletRespond.data.free_time.send_freetime}分钟,总时长${WalletRespond.data.free_time.free_time}分钟`
);
if (configs[key].email != null) {
SendResult(
transporter,
globalConfig.mailConfig.user,
configs[key].email,
`签到完毕! 获得时长:${WalletRespond.data.free_time.send_freetime}分钟,总时长:${WalletRespond.data.free_time.free_time}分钟`
`签到完毕! 获得时长:${WalletRespond.data.free_time.send_freetime}分钟,总时长${WalletRespond.data.free_time.free_time}分钟`
);
}
let NotificationLength = NotificationRespond.data.list.length;