mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修正刷新ck报错
This commit is contained in:
parent
03883430a1
commit
c3111f794a
@ -270,8 +270,10 @@ export default class MihoYoApi {
|
|||||||
return resObj
|
return resObj
|
||||||
}
|
}
|
||||||
async updCookie(){
|
async updCookie(){
|
||||||
let url = `https://api-takumi.mihoyo.com/auth/api/getCookieAccountInfoBySToken`;
|
let url = `${web_api}/auth/api/getCookieAccountInfoBySToken?game_biz=hk4e_cn`;
|
||||||
let res = await superagent.get(url).set(this._getHeader()).timeout(10000);
|
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);
|
let resObj = JSON.parse(res.text);
|
||||||
return resObj;
|
return resObj;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user