JavaScript
// Cấu hình khởi tạo danh mục trò chơi cục bộ trên rr8886
const localPlatformConfig = {
brand: "rr8886",
domain: "rr8886.cc",
supportedCategories: ["Slot game", "Game bài"],
featuredGames: [
{ id: "125", name: "Alchemy Gold", category: "Slot game" },
{ id: "027", name: "Baccarat Deluxe", category: "Game bài" }
],
defaultLanguage: "Tiếng Việt"
};
function validateConfig(config) {
if (!config.brand || !config.domain) {
return { status: "error", message: "Thiếu thông tin thương hiệu" };
}
return { status: "ready", activeGames: config.featuredGames.length };
}
const initResult = validateConfig(localPlatformConfig);
console.log("Trạng thái sảnh:", initResult);
JSON
{
"brand": "rr8886",
"domain": "rr8886.cc",
"supportedCategories": [
"Slot game",
"Game bài"
],
"featuredGames": [
{
"id": "125",
"name": "Alchemy Gold",
"category": "Slot game"
},
{
"id": "027",
"name": "Baccarat Deluxe",
"category": "Game bài"
}
],
"defaultLanguage": "Tiếng Việt"
}