Mẫu thiết lập cấu hình danh mục trò chơi khởi đầu cho thành viên mới.
{ } onboarding_profile.js{ } onboarding_profile.json
Sao chép mã
JavaScript
// Cấu hình tham chiếu danh mục trò chơi tân thủ 33WIN
const onboardingConfig = {
brand: "33WIN" ,
domain: "33winapk.cc" ,
starterGames: [
{ id: "140" , name: "Gladi Glory" , category: "Trò chơi điện tử" },
{ id: "111" , name: "Garuda Gems" , category: "Trò chơi điện tử" },
{ id: "151" , name: "Cash Mania" , category: "Trò chơi điện tử" }
],
benefits: {
welcomeGift: true ,
requireRegistration: true
}
};
function verifyStarterAccess(userReady) {
if (!userReady) {
return { status: "PENDING" , message: "Vui lòng hoàn tất đăng ký trước khi bắt đầu." };
}
return { status: "READY" , games: onboardingConfig.starterGames };
} JSON
{
"brand" : "33WIN" ,
"domain" : "33winapk.cc" ,
"starterGames" : [
{
"id" : "140" ,
"name" : "Gladi Glory" ,
"category" : "Trò chơi điện tử"
},
{
"id" : "111" ,
"name" : "Garuda Gems" ,
"category" : "Trò chơi điện tử"
},
{
"id" : "151" ,
"name" : "Cash Mania" ,
"category" : "Trò chơi điện tử"
}
],
"benefits" : {
"welcomeGift" : true ,
"requireRegistration" : true
}
}