fix: free log._cache

This commit is contained in:
shanmite 2022-11-15 14:21:04 +08:00
parent 5b50611ffe
commit 9e6fe661ca
2 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,6 @@ function start(num) {
if (config.notice_running_state) {
sendNotify(`动态抽奖-帐号${num}结束抽奖`, `${log._cache.filter(it => /抽奖\]|Error|\[抽奖信息\]/.test(it)).join('\n')}`);
}
log._cache.length = 0;
await createRandomDynamic(config.create_dy_num);
event_bus.flush();
resolve();

View File

@ -52,6 +52,7 @@ async function main() {
const { start, isMe, clear, checkCookie } = require("./lib/index");
log.info('main', '当前为第' + NUMBER + '个账号');
log._cache.length = 0
if (await checkCookie(NUMBER)) {
const mode = process.env.lottery_mode;