🤔 add(request): 占坑,等有数据了再试

This commit is contained in:
BTMuli
2023-04-18 00:52:06 +08:00
parent e1142f89aa
commit 2ea88f8a58
4 changed files with 54 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
/**
* @file core utils getRequestHeader.ts
* @description 获取请求头
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.3
*/
export function getRequestHeader (cookie: Record<string, string>): Record<string, string> {
const header = {
"User-Agent": "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.34 Tauri.Genshin/0.1.2",
"x-rpc-app_version": "2.0.0",
"x-rpc-client_type": "5",
"x-rpc-device_id": cookie.DEVICEFP,
Origin: "https://www.miyoushe.com",
Referer: "https://www.miyoushe.com",
};
return header;
}