Mô hình cấu hình cục bộ đối tượng trò chơi.
JavaScript
// Cấu hình tham chiếu danh mục trò chơi 98win
const platformConfig = {
brand: "98win",
country: "vn",
language: "Tiếng Việt",
featuredGames: [
{ id: "131", name: "Hawaiian Tiki", category: "Slot" },
{ id: "160", name: "Yakuza Honor", category: "Slot" },
{ id: "163", name: "Oishi Delights", category: "Slot" },
{ id: "195", name: "Super Wildrix", category: "Slot" },
{ id: "010", name: "Medusa", category: "Slot" }
]
};
function getGameInfo(gameId) {
return platformConfig.featuredGames.find(g => g.id === gameId) || null;
}
JSON
{
"brand": "98win",
"country": "vn",
"language": "Tiếng Việt",
"featuredGames": [
{ "id": "131", "name": "Hawaiian Tiki", "category": "Slot" },
{ "id": "160", "name": "Yakuza Honor", "category": "Slot" },
{ "id": "163", "name": "Oishi Delights", "category": "Slot" },
{ "id": "195", "name": "Super Wildrix", "category": "Slot" },
{ "id": "010", "name": "Medusa", "category": "Slot" }
]
}