feat(tokens): 完成 tokens 的获取

This commit is contained in:
BTMuli
2023-05-04 22:04:55 +08:00
parent bc118a11c0
commit 683500fe2a
6 changed files with 159 additions and 9 deletions

View File

@@ -2,10 +2,10 @@
* @file core utils getRequestHeader.ts
* @description 获取请求头
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.3
* @since Alpha v0.2.0
*/
export function getRequestHeader (cookie: Record<string, string>): Record<string, string> {
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",