Mẫu đối tượng cấu hình danh mục trò chơi nổ hũ trên môi trường cục bộ.
JavaScript
// Cấu hình tham chiếu danh mục trò chơi Nổ hũ zv99 tại local
const zv99GameConfig = {
brand: "zv99",
domain: "zv99game.vip",
supportedPlatform: ["android"],
featuredGames: [
{ id: "043", name: "Captains Bounty", category: "Nổ hũ" },
{ id: "168", name: "Incan Wonders", category: "Nổ hũ" },
{ id: "045", name: "Leprechaun Riches", category: "Nổ hũ" },
{ id: "149", name: "Fortune Dragon", category: "Nổ hũ" },
{ id: "184", name: "Alibaba Cave", category: "Nổ hũ" }
]
};
function getGameTitle(gameId) {
const game = zv99GameConfig.featuredGames.find(item => item.id === gameId);
return game ? game.name : "Unknown";
}
// Ví dụ kiểm tra tiêu đề game
const currentTitle = getGameTitle("043");
JSON
{
"brand": "zv99",
"domain": "zv99game.vip",
"supportedPlatform": ["android"],
"featuredGames": [
{
"id": "043",
"name": "Captains Bounty",
"category": "Nổ hũ"
},
{
"id": "168",
"name": "Incan Wonders",
"category": "Nổ hũ"
},
{
"id": "045",
"name": "Leprechaun Riches",
"category": "Nổ hũ"
},
{
"id": "149",
"name": "Fortune Dragon",
"category": "Nổ hũ"
},
{
"id": "184",
"name": "Alibaba Cave",
"category": "Nổ hũ"
}
]
}