mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: free log._cache
This commit is contained in:
parent
5b50611ffe
commit
9e6fe661ca
@ -57,7 +57,6 @@ function start(num) {
|
|||||||
if (config.notice_running_state) {
|
if (config.notice_running_state) {
|
||||||
sendNotify(`动态抽奖-帐号${num}结束抽奖`, `${log._cache.filter(it => /抽奖\]|Error|\[抽奖信息\]/.test(it)).join('\n')}`);
|
sendNotify(`动态抽奖-帐号${num}结束抽奖`, `${log._cache.filter(it => /抽奖\]|Error|\[抽奖信息\]/.test(it)).join('\n')}`);
|
||||||
}
|
}
|
||||||
log._cache.length = 0;
|
|
||||||
await createRandomDynamic(config.create_dy_num);
|
await createRandomDynamic(config.create_dy_num);
|
||||||
event_bus.flush();
|
event_bus.flush();
|
||||||
resolve();
|
resolve();
|
||||||
|
|||||||
1
main.js
1
main.js
@ -52,6 +52,7 @@ async function main() {
|
|||||||
const { start, isMe, clear, checkCookie } = require("./lib/index");
|
const { start, isMe, clear, checkCookie } = require("./lib/index");
|
||||||
|
|
||||||
log.info('main', '当前为第' + NUMBER + '个账号');
|
log.info('main', '当前为第' + NUMBER + '个账号');
|
||||||
|
log._cache.length = 0
|
||||||
|
|
||||||
if (await checkCookie(NUMBER)) {
|
if (await checkCookie(NUMBER)) {
|
||||||
const mode = process.env.lottery_mode;
|
const mode = process.env.lottery_mode;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user