Mô phỏng tệp cấu hình tham số trò chơi và môi trường cục bộ.
JavaScript
// Cau hinh mau danh muc tro choi BJ88
const bj88Config = {
platform: "android",
country: "vn",
defaultLocale: "vi-VN",
supportedGames: [
{ id: "180", name: "Majestic Emp", category: "Slot" },
{ id: "015", name: "Gem Saviour", category: "Slot" },
{ id: "022", name: "Legend Of Hou Yi", category: "Slot" },
{ id: "159", name: "Shark Bounty", category: "Ban ca" },
{ id: "018", name: "Hood Wolf", category: "Slot" }
]
};
function getGameInfo(gameId) {
return bj88Config.supportedGames.find(g => g.id === gameId) || null;
}
JSON
{
"platform": "android",
"country": "vn",
"defaultLocale": "vi-VN",
"supportedGames": [
{
"id": "180",
"name": "Majestic Emp",
"category": "Slot"
},
{
"id": "015",
"name": "Gem Saviour",
"category": "Slot"
},
{
"id": "022",
"name": "Legend Of Hou Yi",
"category": "Slot"
},
{
"id": "159",
"name": "Shark Bounty",
"category": "Ban ca"
},
{
"id": "018",
"name": "Hood Wolf",
"category": "Slot"
}
]
}