2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

修正睡眠不对问题

This commit is contained in:
Ctrlcvs 2022-10-17 04:56:55 +08:00
parent c4425cff88
commit f8f9df6761

View File

@ -101,7 +101,7 @@ export default class user {
if(this.allSign){ if(this.allSign){
this.allSign[forum.name].bindGame++; this.allSign[forum.name].bindGame++;
} }
utils.randomSleepAsync() await utils.randomSleepAsync()
continue; continue;
} }
message += `${forum.name}共计${res?.data?.list.length}个账号\n`; message += `${forum.name}共计${res?.data?.list.length}个账号\n`;
@ -130,8 +130,8 @@ export default class user {
//ps你要是觉得改有加高过的概率就改吧随便你反正到时候黑IP的不是我 //ps你要是觉得改有加高过的概率就改吧随便你反正到时候黑IP的不是我
} }
} }
res = await this.getData("sign", data)
await utils.sleepAsync(2000) await utils.sleepAsync(2000)
res = await this.getData("sign", data)
if (res?.data?.gt) { //进行3次验证码访问签到加高通过概率 if (res?.data?.gt) { //进行3次验证码访问签到加高通过概率
let validate = await this.geetest(res.data) let validate = await this.geetest(res.data)
if (validate) { if (validate) {
@ -433,6 +433,10 @@ export default class user {
e.msg = "全部" e.msg = "全部"
} }
Bot.logger.mark(`正在为qq${user_id}米社签到中...`); 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) => { e.reply = (msg) => {
if (!isAllSign || mul) { if (!isAllSign || mul) {
return; return;
@ -441,9 +445,7 @@ export default class user {
utils.relpyPrivate(qq, msg + "\n自动签到成功"); utils.relpyPrivate(qq, msg + "\n自动签到成功");
} }
}; };
this.e = e; e.reply(res.message)
let res = await this.multiSign(this.getDataList(e.msg));
Bot.logger.mark(`${res.message}`)
this.e.reply(res.message) this.e.reply(res.message)
await utils.sleepAsync(15000); await utils.sleepAsync(15000);
} }