diff --git a/src/web/request/getUserInfo.ts b/src/web/request/getUserInfo.ts index d14d2fc3..84bb5ea2 100644 --- a/src/web/request/getUserInfo.ts +++ b/src/web/request/getUserInfo.ts @@ -2,7 +2,7 @@ * @file web request getUserInfo.ts * @description 获取用户信息请求 * @author BTMuli - * @since Alpha v0.1.5 + * @since Alpha v0.2.2 */ // tauri @@ -11,12 +11,10 @@ import { http } from "@tauri-apps/api"; import TGApi from "../api/TGApi"; // utils import TGUtils from "../utils/TGUtils"; -// types -import { type UserResponse } from "../../plugins/Mys/interface/user"; /** * @description 根据 cookie 获取用户信息 - * @since Alpha v0.2.0 + * @since Alpha v0.2.2 * @param {string} cookie_token cookie token * @param {string} account_id 用户 account_id * @returns {Promise} @@ -33,7 +31,7 @@ export async function getUserInfoByCookie( const params = { gids: "2" }; const header = TGUtils.User.getSignHeader(cookie, "GET", {}, "common"); return await http - .fetch(url, { + .fetch(url, { method: "GET", headers: header, query: params,