💄 调整UI

This commit is contained in:
目棃
2025-01-16 16:24:22 +08:00
parent 8ecaed05ea
commit 8e68ca36bb
4 changed files with 157 additions and 14 deletions

View File

@@ -295,6 +295,17 @@ export function getGameId(mini: string): string {
return game ? game.gid : "0";
}
/**
* @description 根据id获取游戏图标
* @since Beta v0.6.8
* @param {number|string} gid
* @returns {string|undefined}
*/
export function getGameIcon(gid: number | string): string | undefined {
const game = TGConstant.BBS.CHANNELS.find((item) => item.gid === gid.toString());
return game ? game.icon : undefined;
}
/**
* @description 根据id获取对应角色/武器数据
* @since Beta v0.6.8