Mẫu cấu hình cục bộ mô phỏng phân loại danh mục trò chơi slot.
JavaScript
// Cấu hình tham chiếu danh mục trò chơi nội bộ
const qq288GameCatalog = {
platform: "qq288",
country: "vn",
supportedGames: [
{ id: "103", name: "Spirit Wonder", category: "Trò chơi slot" },
{ id: "164", name: "Museum Wonders", category: "Trò chơi slot" },
{ id: "106", name: "Emoji Riches", category: "Trò chơi slot" },
{ id: "203", name: "Princess Frog", category: "Trò chơi slot" },
{ id: "029", name: "Piggy Gold", category: "Trò chơi slot" }
],
defaultLanguage: "Tiếng Việt"
};
function getGameInfo(gameId) {
return qq288GameCatalog.supportedGames.find(g => g.id === gameId) || null;
}
JSON
{
"platform": "qq288",
"country": "vn",
"supportedGames": [
{
"id": "103",
"name": "Spirit Wonder",
"category": "Trò chơi slot"
},
{
"id": "164",
"name": "Museum Wonders",
"category": "Trò chơi slot"
},
{
"id": "106",
"name": "Emoji Riches",
"category": "Trò chơi slot"
},
{
"id": "203",
"name": "Princess Frog",
"category": "Trò chơi slot"
},
{
"id": "029",
"name": "Piggy Gold",
"category": "Trò chơi slot"
}
],
"defaultLanguage": "Tiếng Việt"
}