JavaScript
// Cấu hình tham số hiển thị trò chơi cục bộ
const sv388Config = {
brand: 'SV388',
domain: 'sv3880game.com',
locale: 'vi-VN',
featuredGames: [
{ id: '070', name: 'Genies Wishes', category: 'Slot' },
{ id: '018', name: 'Hood Wolf', category: 'Slot' },
{ id: '178', name: 'Galaxy Miner', category: 'Slot' }
]
};
function getGameDetails(gameId) {
return sv388Config.featuredGames.find(g => g.id === gameId) || null;
}
module.exports = { sv388Config, getGameDetails };
JSON
{
"platform": "SV388",
"domain": "sv3880game.com",
"defaultLanguage": "Tiếng Việt",
"catalog": [
{"id": "070", "name": "Genies Wishes", "category": "Slot"},
{"id": "018", "name": "Hood Wolf", "category": "Slot"},
{"id": "178", "name": "Galaxy Miner", "category": "Slot"},
{"id": "164", "name": "Museum Wonders", "category": "Slot"},
{"id": "134", "name": "Myst Spirits", "category": "Slot"}
]
}