From 7efc6e19f05c260649122ba03242a672897492ce Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Sat, 30 Jul 2022 10:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=BB=E5=8F=96=E5=B8=96?= =?UTF-8?q?=E5=AD=90=E4=B8=8A=E9=99=90=E4=B8=BA10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sign.js | 4 ++-- model/mys/mihoyo-api.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sign.js b/apps/sign.js index 4678e55..f41596a 100644 --- a/apps/sign.js +++ b/apps/sign.js @@ -50,7 +50,7 @@ export async function sign(e) { let resultMessage=""; let msg = e.msg.replace(/#|签到|井|米游社|mys|社区/g, ""); let ForumData = await getDataList(msg); - e.reply(`开始尝试${msg}签到预计2-3分钟~`) + e.reply(`开始尝试${msg}签到预计${msg=='全部'?"2-3":"1-3"}分钟~`) for (let forum of ForumData) { resultMessage += `**${forum.name}**\n` try { @@ -91,7 +91,7 @@ export async function mysSign(e) { // Execute task let msg = e.msg.replace(/#|签到|井|米游社|mys|社区/g, ""); let ForumData = await getDataList(msg); - e.reply(`开始尝试${msg}社区签到预计2-3分钟~`) + e.reply(`开始尝试${msg}社区签到预计${msg=='全部'?"10-20":"1-3"}分钟~`) for (let forum of ForumData) { resultMessage += `\n**${forum.name}**\n` try { diff --git a/model/mys/mihoyo-api.js b/model/mys/mihoyo-api.js index bd88d64..008f9ef 100644 --- a/model/mys/mihoyo-api.js +++ b/model/mys/mihoyo-api.js @@ -36,7 +36,7 @@ export default class MihoYoApi { async forumPostList(forumId) { const url = - `https://api-takumi.mihoyo.com/post/api/getForumPostList?forum_id=${forumId}&is_good=false&is_hot=false&page_size=20&sort_type=1`; + `https://api-takumi.mihoyo.com/post/api/getForumPostList?forum_id=${forumId}&is_good=false&is_hot=false&page_size=10&sort_type=1`; let res = await superagent.get(url).set(this._getHeader()).timeout(10000); let resObj = JSON.parse(res.text);