2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2025-01-22 13:51:10 +08:00
This commit is contained in:
Ctrlcvs 2022-11-08 00:17:37 +08:00
parent 216bea91c9
commit 1b8f06c149
2 changed files with 6 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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;