Cấu hình tham số cục bộ lưu trữ thiết lập trò chơi tại BJ88.
JavaScript
// Cấu hình tham số cục bộ cho ứng dụng BJ88
const localConfig = {
brand: "BJ88",
domain: "bj88apk.com",
environment: "local",
supportedGames: [
{ id: "052", name: "Dragon Hatch", category: "Nổ hũ" },
{ id: "119", name: "Speed Winner", category: "Nổ hũ" },
{ id: "179", name: "Grimm Bounty", category: "Nổ hũ" }
],
preferences: {
language: "Tiếng Việt",
soundEnabled: true,
autoUpdatePrompt: false
}
};
function getGameInfo(gameId) {
return localConfig.supportedGames.find(g => g.id === gameId) || null;
}
console.log("Khoi tao cau hinh noi bo:", localConfig.brand);
JSON
{
"brand": "BJ88",
"domain": "bj88apk.com",
"environment": "local",
"supportedGames": [
{
"id": "052",
"name": "Dragon Hatch",
"category": "Nổ hũ"
},
{
"id": "119",
"name": "Speed Winner",
"category": "Nổ hũ"
},
{
"id": "179",
"name": "Grimm Bounty",
"category": "Nổ hũ"
}
],
"preferences": {
"language": "Tiếng Việt",
"soundEnabled": true,
"autoUpdatePrompt": false
}
}