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