⬆️ 更新依赖

This commit is contained in:
目棃
2025-02-12 13:33:42 +08:00
parent 8eb1d19512
commit 89d1b2c6a7
6 changed files with 672 additions and 604 deletions

View File

@@ -1,10 +1,10 @@
/**
* @file utils/TGBbs.ts
* @description 关于 BBS 的工具函数
* @since Beta v0.6.8
* @since Beta v0.6.10
*/
const BBS_VERSION: Readonly<string> = "2.80.1";
const BBS_VERSION: Readonly<string> = "2.81.1";
const BBS_UA_MOBILE: Readonly<string> = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`;
/**
@@ -33,17 +33,6 @@ const CHANNEL_LIST: Readonly<Array<ChannelItem>> = [
{ title: "大别野", gid: 5, mini: "dby" },
];
/**
* @description 获取游戏id
* @since Beta v0.6.8
* @param {string} mini
* @returns {string}
*/
export function getGameId(mini: string): number {
const game = CHANNEL_LIST.find((item) => item.mini === mini);
return game ? game.gid : 0;
}
const TGBbs = { version: BBS_VERSION, ua: BBS_UA_MOBILE, channels: CHANNEL_LIST };
export default TGBbs;

View File

@@ -24,12 +24,12 @@ const enum SaltType {
/**
* @description salt 值
* @version 2.80.1
* @since Beta v0.6.7
* @version 2.81.1
* @since Beta v0.6.10
*/
const Salt: Readonly<Record<keyof typeof SaltType, string>> = {
K2: "G1rXOpMLQS77VPWEGycOSxekCTZe2Q8M",
LK2: "sd1e1gQJuvqBfZxas1oeAACXzbim5cge",
K2: "QVu5OdwEWxkq9ygpYBgDprR5tI471HWQ",
LK2: "aquFmwOjyqev4CAL6GQ2v5mdkxpCVXCY",
X4: "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs",
X6: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",
PROD: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",