🤔 add(sth): 加了一些数据

This commit is contained in:
BTMuli
2023-05-05 18:47:59 +08:00
parent 53242d6170
commit ce1b0fc398
5 changed files with 36 additions and 5 deletions

View File

@@ -5,10 +5,14 @@
* @since Alpha v0.2.0
*/
import TGConstant from "../constant/TGConstant";
export function getRequestHeader (cookie: BTMuli.User.Base.Cookie): 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",
"User-Agent": TGConstant.BBS.USER_AGENT,
"content-type": "application/json;charset=UTF-8",
"x-requested-with": "com.mihoyo.hyperion",
"x-rpc-app_version": TGConstant.BBS.VERSION,
"x-rpc-client_type": "5",
"x-rpc-device_id": cookie.DEVICEFP,
Origin: "https://www.miyoushe.com",