fix
This commit is contained in:
parent
dcfead4e51
commit
0b980891f1
@ -5,9 +5,9 @@ const reggol = require("reggol")
|
|||||||
const { getConfigs, checkConfigs, makeHeader, Notification, Wallet, SendLog, AppVersion, getGlobalConfig } = require("./config")
|
const { getConfigs, checkConfigs, makeHeader, Notification, Wallet, SendLog, AppVersion, getGlobalConfig } = require("./config")
|
||||||
const urlconfig = require("./config")
|
const urlconfig = require("./config")
|
||||||
|
|
||||||
const { log, addLogContent } = require("./logger");
|
const { log, addLogContent, getLogs } = require("./logger");
|
||||||
|
|
||||||
const nodemailer = require("nodemailer")
|
const nodemailer = require("nodemailer");
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
log.info("开始获取全局配置")
|
log.info("开始获取全局配置")
|
||||||
@ -70,7 +70,7 @@ const nodemailer = require("nodemailer")
|
|||||||
globalConfig.mailConfig.mailto,
|
globalConfig.mailConfig.mailto,
|
||||||
successNum,
|
successNum,
|
||||||
totalNum,
|
totalNum,
|
||||||
logContent
|
getLogs()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})()
|
})()
|
@ -4,6 +4,10 @@ let logContent = ``
|
|||||||
exports.addLogContent = function(content) {
|
exports.addLogContent = function(content) {
|
||||||
logContent += content
|
logContent += content
|
||||||
}
|
}
|
||||||
|
exports.getLogs = function() {
|
||||||
|
return logContent
|
||||||
|
}
|
||||||
|
|
||||||
exports.log = {
|
exports.log = {
|
||||||
info(content) {
|
info(content) {
|
||||||
logContent += `<strong style="color: green">[info]</strong> ${content}<br>`
|
logContent += `<strong style="color: green">[info]</strong> ${content}<br>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user