diff --git a/src/web/request/apiHubReq.ts b/src/web/request/apiHubReq.ts index 5f1c1d83..3b8efa9e 100644 --- a/src/web/request/apiHubReq.ts +++ b/src/web/request/apiHubReq.ts @@ -56,7 +56,7 @@ async function getMissions(cookie: Record): Promise} cookie 用户 Cookie * @return {Promise} @@ -130,7 +130,7 @@ async function homeNew(gid: number = 2): Promise} cookie 用户 Cookie * @param {string} gid * @return {Promise} @@ -139,14 +139,11 @@ async function signIn( cookie: Record, gid: number = 2, ): Promise { - const data = { gids: gid.toString() }; + const data = { gids: gid }; const header = { ...getRequestHeader(cookie, "POST", JSON.stringify(data), "X6"), "x-rpc-client_type": "2", - referer: "https://app.mihoyo.com", }; - if ("x-requested-with" in header) delete header["x-requested-with"]; - console.log(header); return await TGHttp(`${Mahbu}app/api/signIn`, { method: "POST", headers: header,