Tập tin thiết lập cục bộ mô phỏng các thông số hiển thị cho nền tảng as9.
JavaScript
// Cau hinh tham chieu cuc bo danh cho thu nghiem giao dien
const localPlatformConfig = {
brand: "as9",
locale: "vi-VN",
defaultPlatform: "android",
featuredGames: [
{ id: "088", name: "Bali Vacation", category: "Slot game" },
{ id: "047", name: "Ninja Vs Samurai", category: "Slot game" },
{ id: "135", name: "Spr Golf Drive", category: "Trò chơi thể thao" }
],
debugMode: false
};
function getGameInfo(gameId) {
return localPlatformConfig.featuredGames.find(g => g.id === gameId) || null;
}
// Xuat doi tuong kiem thu cuc bo
module.exports = { localPlatformConfig, getGameInfo };
JSON
{
"brand": "as9",
"locale": "vi-VN",
"defaultPlatform": "android",
"featuredGames": [
{
"id": "088",
"name": "Bali Vacation",
"category": "Slot game"
},
{
"id": "047",
"name": "Ninja Vs Samurai",
"category": "Slot game"
},
{
"id": "135",
"name": "Spr Golf Drive",
"category": "Trò chơi thể thao"
}
],
"debugMode": false
}