Mẫu cấu hình tham chiếu dữ liệu trò chơi và danh mục nội bộ.
JavaScript
// Cấu hình tham chiếu danh mục trò chơi 36WIN cục bộ
const localGameConfig = {
brand: "36WIN",
domain: "36wingames.com",
featuredSlots: [
{ id: "158", name: "Futebol Fever", category: "Nổ hũ" },
{ id: "110", name: "Fortune Tiger", category: "Nổ hũ" },
{ id: "100", name: "Sprmkt Spree", category: "Nổ hũ" },
{ id: "024", name: "Prosperity Lion", category: "Nổ hũ" },
{ id: "050", name: "Mahjong Ways", category: "Nổ hũ" }
],
paths: {
download: "/download/",
registration: "/register/",
guides: "/play-guides/"
}
};
function getFeaturedGames() {
return localGameConfig.featuredSlots.map(game => game.name);
}
JSON
{
"brand": "36WIN",
"domain": "36wingames.com",
"featuredSlots": [
{
"id": "158",
"name": "Futebol Fever",
"category": "Nổ hũ"
},
{
"id": "110",
"name": "Fortune Tiger",
"category": "Nổ hũ"
},
{
"id": "100",
"name": "Sprmkt Spree",
"category": "Nổ hũ"
},
{
"id": "024",
"name": "Prosperity Lion",
"category": "Nổ hũ"
},
{
"id": "050",
"name": "Mahjong Ways",
"category": "Nổ hũ"
}
],
"paths": {
"download": "/download/",
"registration": "/register/",
"guides": "/play-guides/"
}
}