From c3111f794a62686ca180b0d31f1c5422f30f3f2f Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Fri, 16 Sep 2022 13:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=B7=E6=96=B0ck=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mys/mihoyo-api.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/model/mys/mihoyo-api.js b/model/mys/mihoyo-api.js index 5f9fe51..19899c3 100644 --- a/model/mys/mihoyo-api.js +++ b/model/mys/mihoyo-api.js @@ -270,8 +270,10 @@ export default class MihoYoApi { return resObj } async updCookie(){ - let url = `https://api-takumi.mihoyo.com/auth/api/getCookieAccountInfoBySToken`; - let res = await superagent.get(url).set(this._getHeader()).timeout(10000); + let url = `${web_api}/auth/api/getCookieAccountInfoBySToken?game_biz=hk4e_cn`; + let map=this.getCookieMap(this.cookies) + url+=`&stoken=${map.get("stoken")}&uid=${map.get("stuid")}`; + let res = await superagent.get(url); let resObj = JSON.parse(res.text); return resObj; }