log content
This commit is contained in:
parent
2dbcab998f
commit
ee3321c7e8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user