mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
✏️ 完善基本 Response 类型 #51
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user