log content
This commit is contained in:
parent
2dbcab998f
commit
ee3321c7e8
@ -67,9 +67,9 @@ exports.getGlobalConfig = function () {
|
|||||||
var globalConfig = fs.readFileSync("global.json");
|
var globalConfig = fs.readFileSync("global.json");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.toString().includes("Error: ENOENT: no such file or directory")) {
|
if (e.toString().includes("Error: ENOENT: no such file or directory")) {
|
||||||
log.error(`读取配置失败!找不到全局配置文件`);
|
log.error(`读取配置失败!找不到全局配置文件`);
|
||||||
} else {
|
} else {
|
||||||
log.error(`读取配置失败!错误信息:${e}`);
|
log.error(`读取配置失败!错误信息:${e}`);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@ -84,9 +84,9 @@ exports.getConfigs = function () {
|
|||||||
if (
|
if (
|
||||||
e == "Error: ENOENT: no such file or directory, scandir 'configs'"
|
e == "Error: ENOENT: no such file or directory, scandir 'configs'"
|
||||||
) {
|
) {
|
||||||
log.error(`读取配置失败!找不到configs文件夹`);
|
log.error(`读取配置失败!找不到configs文件夹`);
|
||||||
} else {
|
} else {
|
||||||
log.error(`读取配置失败!错误信息:${e}`);
|
log.error(`读取配置失败!错误信息:${e}`);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
@ -63,14 +63,14 @@ const nodemailer = require("nodemailer");
|
|||||||
);
|
);
|
||||||
successNum++;
|
successNum++;
|
||||||
log.info(
|
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) {
|
if (configs[key].email != null) {
|
||||||
SendResult(
|
SendResult(
|
||||||
transporter,
|
transporter,
|
||||||
globalConfig.mailConfig.user,
|
globalConfig.mailConfig.user,
|
||||||
configs[key].email,
|
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;
|
let NotificationLength = NotificationRespond.data.list.length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user