👽️ 调整公告解析正则

*Refer: https://github.com/UIGF-org/CurrentBannerWatcher
This commit is contained in:
BTMuli
2025-09-09 12:16:51 +08:00
parent 641ae0043f
commit fe5a5011eb
3 changed files with 17 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
/**
* @file utils/TGBbs.ts
* @description 关于 BBS 的工具函数
* @since Beta v0.7.9
* @since Beta v0.8.0
*/
/**
@@ -10,18 +10,18 @@
*/
export type SaltKey = "K2" | "LK2" | "X4" | "X6" | "PROD";
const BBS_VERSION: Readonly<string> = "2.90.0";
const BBS_VERSION: Readonly<string> = "2.93.0";
const BBS_UA_MOBILE: Readonly<string> = `Mozilla/5.0 (Linux; Android 12) Mobile miHoYoBBS/${BBS_VERSION}`;
const BBS_UA_PC: Readonly<string> = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) miHoYoBBS/${BBS_VERSION}`;
/**
* @description salt 值
* @version 2.90.0
* @since Beta v0.7.9
* @version 2.93.0
* @since Beta v0.8.0
*/
const BBS_SALT: Readonly<Record<SaltKey, string>> = {
K2: "LKsbRciURVKljyjuhSeobiyFngbAyjAh",
LK2: "dDIQHbKOdaPaLuvQKVzUzqdeCaxjtaPV",
K2: "idMMaGYmVgPzh3wxmWudUXKUPGidO7GM",
LK2: "G1ktdwFL4IyGkHuuWSmz0wUe9Db9scyK",
X4: "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs",
X6: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",
PROD: "t0qEgfub6cvueAPgR5m9aQWWVciEer7v",