diff --git a/apps/sign.js b/apps/sign.js index 2b97348..db82242 100644 --- a/apps/sign.js +++ b/apps/sign.js @@ -111,7 +111,7 @@ export async function sign(e) { let msg = e.msg.replace(/#|签到|井|米游社|mys|社区/g, ""); let ForumData = await user.getDataList(msg); 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); return true; } diff --git a/model/user.js b/model/user.js index 04f1222..ba44389 100644 --- a/model/user.js +++ b/model/user.js @@ -84,9 +84,13 @@ export default class user { let res = await this.miHoYoApi.getData(type, data) return res } - async multiSign(forumData) { + + async multiSign(forumData,isCk=false) { let upData = [], message = ''; + if(isCk){ + await this.cookie(this.e) + } for (let forum of forumData) { if (!(this.configSign.signlist.includes(forum.name))) { continue;