From 5272108e829924e7ccb02f47d10438fce90c12dd Mon Sep 17 00:00:00 2001 From: BTMuli Date: Mon, 9 Oct 2023 18:50:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E5=AE=8C=E5=96=84=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/request/getUserInfo.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/web/request/getUserInfo.ts b/src/web/request/getUserInfo.ts index 9e6db9df..6cf22230 100644 --- a/src/web/request/getUserInfo.ts +++ b/src/web/request/getUserInfo.ts @@ -1,8 +1,7 @@ /** * @file web request getUserInfo.ts * @description 获取用户信息请求 - * @author BTMuli - * @since Beta v0.3.0 + * @since Beta v0.3.3 */ // tauri @@ -14,7 +13,7 @@ import TGUtils from "../utils/TGUtils"; /** * @description 根据 cookie 获取用户信息 - * @since Beta v0.3.0 + * @since Beta v0.3.3 * @param {string} cookie_token cookie token * @param {string} account_id 用户 account_id * @returns {Promise} @@ -29,7 +28,7 @@ export async function getUserInfoByCookie( }; const url = TGApi.GameData.byCookie.getUserInfo; const params = { gids: "2" }; - const header = TGUtils.User.getHeader(cookie, "GET", {}, "common", true); + const header = TGUtils.User.getHeader(cookie, "GET", params, "common", true); return await http .fetch(url, { method: "GET",