diff --git a/lib/lottery.js b/lib/lottery.js index 559633f..46037c6 100644 --- a/lib/lottery.js +++ b/lib/lottery.js @@ -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(); diff --git a/main.js b/main.js index fa144bd..e8700e7 100644 --- a/main.js +++ b/main.js @@ -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;