From e072452cd472fda40010b2db457c513b69bad1ad Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Thu, 4 Aug 2022 16:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mys/mihoyo-api.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/model/mys/mihoyo-api.js b/model/mys/mihoyo-api.js index 99bc81e..18972bd 100644 --- a/model/mys/mihoyo-api.js +++ b/model/mys/mihoyo-api.js @@ -133,7 +133,7 @@ export default class MihoYoApi { const url = `https://api-takumi.mihoyo.com/apihub/sapi/signIn?gids=${forumId}`; let res = await superagent.post(url).set(this._getHeader()).timeout(10000); let resObj = JSON.parse(res.text); - // Bot.logger.mark(`ForumSign: ${res.text}`); + Bot.logger.mark(`ForumSign: ${res.text}`); return resObj; } @@ -384,14 +384,10 @@ export default class MihoYoApi { url = `${web_api}/event/bbs_sign_reward/sign` } if (board.name == "崩坏2" || board.name == "未定事件簿") { - url = `${web_api}/event/luna/info?lang=zh-cn` + url = `${web_api}/event/luna/sign` } url += `?region=${region}&act_id=${board.actid}&uid=${game_uid}` - // if (board.name === "崩坏3") { - // url = `${web_api}/event/luna/info?lang=zh-cn®ion=${region}&act_id=${board.actid}&uid=${game_uid}` - // } - // console.log(this.e) - let res = await superagent.post(url).set(this.getpubHeaders(board)).timeout(10000); + let res= await superagent.post(url).set(this.getpubHeaders(board)).timeout(10000); let resObj = JSON.parse(res.text); return resObj }