mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2025-01-22 13:51:10 +08:00
fix
This commit is contained in:
parent
216bea91c9
commit
1b8f06c149
@ -111,7 +111,7 @@ export async function sign(e) {
|
|||||||
let msg = e.msg.replace(/#|签到|井|米游社|mys|社区/g, "");
|
let msg = e.msg.replace(/#|签到|井|米游社|mys|社区/g, "");
|
||||||
let ForumData = await user.getDataList(msg);
|
let ForumData = await user.getDataList(msg);
|
||||||
e.reply(`开始尝试${msg}签到\n预计${msg=='全部'?"60":"5-10"}秒~`)
|
e.reply(`开始尝试${msg}签到\n预计${msg=='全部'?"60":"5-10"}秒~`)
|
||||||
let res = await user.multiSign(ForumData);
|
let res = await user.multiSign(ForumData,true);
|
||||||
await replyMsg(e, res.message);
|
await replyMsg(e, res.message);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -84,9 +84,13 @@ export default class user {
|
|||||||
let res = await this.miHoYoApi.getData(type, data)
|
let res = await this.miHoYoApi.getData(type, data)
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
async multiSign(forumData) {
|
|
||||||
|
async multiSign(forumData,isCk=false) {
|
||||||
let upData = [],
|
let upData = [],
|
||||||
message = '';
|
message = '';
|
||||||
|
if(isCk){
|
||||||
|
await this.cookie(this.e)
|
||||||
|
}
|
||||||
for (let forum of forumData) {
|
for (let forum of forumData) {
|
||||||
if (!(this.configSign.signlist.includes(forum.name))) {
|
if (!(this.configSign.signlist.includes(forum.name))) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user