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){
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);
}