From f8f9df6761e9923a2e07963bd657426db674bcec Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Mon, 17 Oct 2022 04:56:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=9D=A1=E7=9C=A0=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/user.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/model/user.js b/model/user.js index 6bfb776..9b6c826 100644 --- a/model/user.js +++ b/model/user.js @@ -101,7 +101,7 @@ export default class user { if(this.allSign){ this.allSign[forum.name].bindGame++; } - utils.randomSleepAsync() + await utils.randomSleepAsync() continue; } message += `${forum.name}共计${res?.data?.list.length}个账号\n`; @@ -130,8 +130,8 @@ export default class user { //ps:你要是觉得改有加高过的概率就改吧,随便你反正到时候黑IP的不是我 } } - res = await this.getData("sign", data) await utils.sleepAsync(2000) + res = await this.getData("sign", data) if (res?.data?.gt) { //进行3次验证码访问签到加高通过概率 let validate = await this.geetest(res.data) if (validate) { @@ -433,6 +433,10 @@ export default class user { e.msg = "全部" } Bot.logger.mark(`正在为qq${user_id}米社签到中...`); + + this.e = e; + let res = await this.multiSign(this.getDataList(e.msg)); + Bot.logger.mark(`${res.message}`) e.reply = (msg) => { if (!isAllSign || mul) { return; @@ -441,9 +445,7 @@ export default class user { utils.relpyPrivate(qq, msg + "\n自动签到成功"); } }; - this.e = e; - let res = await this.multiSign(this.getDataList(e.msg)); - Bot.logger.mark(`${res.message}`) + e.reply(res.message) this.e.reply(res.message) await utils.sleepAsync(15000); }