Mô phỏng mẫu cấu hình cục bộ kiểm thử danh mục trò chơi 789f38.
{ } example.js{ } example.json
Sao chép mã
JavaScript
// Cấu hình thông số nội bộ cho môi trường phát triển cục bộ
const localPlatformConfig = {
brandName: "789f38" ,
environment: "local-dev" ,
supportedPlatform: "android" ,
featuredGames: [
{ id: "052" , name: "Dragon Hatch" , category: "Slot" },
{ id: "147" , name: "Werewolf Hunt" , category: "Slot" },
{ id: "181" , name: "Kraken Gold" , category: "Slot" }
],
logLevel: "debug"
};
function getGameDetails(gameId) {
return localPlatformConfig.featuredGames.find(g => g.id === gameId) || null ;
}
module.exports = { localPlatformConfig, getGameDetails }; JSON
{
"brandName" : "789f38" ,
"environment" : "local-dev" ,
"supportedPlatform" : "android" ,
"featuredGames" : [
{
"id" : "052" ,
"name" : "Dragon Hatch" ,
"category" : "Slot"
},
{
"id" : "147" ,
"name" : "Werewolf Hunt" ,
"category" : "Slot"
},
{
"id" : "181" ,
"name" : "Kraken Gold" ,
"category" : "Slot"
}
],
"logLevel" : "debug"
}