✏️ 完善基本 Response 类型 #51

This commit is contained in:
BTMuli
2023-10-26 18:58:06 +08:00
parent 1d408b5d24
commit 9a221f9b64
33 changed files with 266 additions and 238 deletions

View File

@@ -1,5 +1,5 @@
/**
* @file web request genAuthkey.ts
* @file web/request/genAuthkey.ts
* @description 生成 authkey
* @since Beta v0.3.0
*/
@@ -29,7 +29,7 @@ export async function genAuthkey(
};
const header = TGUtils.User.getHeader(cookie, "POST", JSON.stringify(data), "lk2", true);
return await http
.fetch<TGApp.Game.Gacha.AuthkeyResponse>(url, {
.fetch<TGApp.Game.Gacha.AuthkeyResponse | TGApp.BBS.Response.Base>(url, {
method: "POST",
headers: header,
body: http.Body.json(data),