♻️ 感觉差不多了,剩下的就靠测试了 #92

This commit is contained in:
目棃
2024-07-03 22:33:00 +08:00
parent 8a2c7d13c6
commit f4de7552e1
28 changed files with 249 additions and 399 deletions

View File

@@ -32,7 +32,7 @@ async function getVideoUrl(cid: number, bvid: string): Promise<TGApp.Plugins.Bil
const resp = await TGHttp<TGApp.Plugins.Bili.Video.UrlResponse>(url, {
method: "GET",
query: params,
referrer: "https://www.bilibili.com/",
headers: { referer: "https://www.bilibili.com/" },
});
return resp.data;
}

View File

@@ -20,6 +20,7 @@ async function uploadData(
return await TGHttp<TGApp.Plugins.Hutao.Abyss.UploadResponse>(url, {
method: "POST",
body: JSON.stringify(data),
headers: { "Content-Type": "application/json" },
});
}