JavaScript
// Cấu hình tham chiếu danh mục trò chơi nội bộ trên giao diện web
const localGameCatalog = {
platform: "789CLUB",
domain: "789club0game.com",
locale: "vi-VN",
categories: [
{
id: "slot",
name: "Slot Game",
items: ["193", "175", "050", "056"]
},
{
id: "arcade",
name: "Bắn cá / Bắn súng",
items: ["196"]
}
],
filterActive: function(categoryId) {
return this.categories.find(cat => cat.id === categoryId) || null;
}
};
// Ví dụ kiểm tra danh mục quay hũ
const activeSlot = localGameCatalog.filterActive("slot");
console.log("Số lượng game slot:", activeSlot ? activeSlot.items.length : 0);
JSON
{
"platform": "789CLUB",
"domain": "789club0game.com",
"locale": "vi-VN",
"categories": [
{
"id": "slot",
"name": "Slot Game",
"items": ["193", "175", "050", "056"]
},
{
"id": "arcade",
"name": "Bắn cá / Bắn súng",
"items": ["196"]
}
]
}