Đoạn mã thiết lập đối tượng cấu hình danh sách trò chơi slot cục bộ không kết nối mạng.
JavaScript
// Mẫu cấu hình hiển thị danh mục trò chơi cục bộ
const localPlatformConfig = {
brand: '9BET',
defaultLanguage: 'vi-VN',
supportedCategories: ['Slot game'],
featuredGames: [
{ id: '155', name: 'Anubis Wrath', active: true },
{ id: '088', name: 'Bali Vacation', active: true },
{ id: '033', name: 'Ganesha Gold', active: true }
]
};
function getFeaturedList() {
return localPlatformConfig.featuredGames.filter(g => g.active);
}
JSON
{
"brand": "9BET",
"defaultLanguage": "vi-VN",
"supportedCategories": ["Slot game"],
"featuredGames": [
{ "id": "155", "name": "Anubis Wrath", "active": true },
{ "id": "088", "name": "Bali Vacation", "active": true },
{ "id": "033", "name": "Ganesha Gold", "active": true }
]
}