实装 getDeviceFp

close #58
This commit is contained in:
BTMuli
2023-11-16 14:19:18 +08:00
parent 13e9440c6f
commit 712a09131e
11 changed files with 274 additions and 46 deletions

View File

@@ -1,17 +1,18 @@
/**
* @file web constant TGConstant.ts
* @file web/constant/TGConstant.ts
* @description 常量
* @since Beta v0.3.3
* @since Beta v0.3.6
*/
import { BBS_VERSION, BBS_HEADER_AGENT, BBS_APP_ID, BBS_SALT } from "./bbs";
import { BBS_APP_ID, BBS_SALT, BBS_UA_MOBILE, BBS_UA_PC, BBS_VERSION } from "./bbs";
import SERVER from "./server";
import { GAME_BIZ } from "./utils";
const TGConstant = {
BBS: {
VERSION: BBS_VERSION,
USER_AGENT: BBS_HEADER_AGENT,
UA_PC: BBS_UA_PC,
UA_MOBILE: BBS_UA_MOBILE,
APP_ID: BBS_APP_ID,
},
Salt: BBS_SALT,

View File

@@ -1,11 +1,12 @@
/**
* @file web constant bbs.ts
* @file web/constant/bbs.ts
* @description 常量-应用数据
* @since Beta v0.3.3
* @since Beta v0.3.6
*/
export const BBS_VERSION = "2.59.1";
export const BBS_HEADER_AGENT = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) miHoYoBBS/${BBS_VERSION}`;
export const BBS_UA_PC = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) miHoYoBBS/${BBS_VERSION}`;
export const BBS_UA_MOBILE = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`;
export const BBS_APP_ID = "bll8iq97cem8";
/**