<?php
	include "../../conn.php";
			
	header('Content-Type: application/json; charset=utf-8');
	header('Strict-Transport-Security: max-age=31536000');
	header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization');
	header('Access-Control-Allow-Credentials: true');
	$origin = isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : '';
	header('Access-Control-Allow-Origin: ' . $origin);
	header('vary: Origin');
	
	date_default_timezone_set('Asia/Kolkata');
	$shnunc = date("Y-m-d H:i:s");
	$res = [
		'code' => 11,
		'msg' => 'Method not allowed',
		'msgCode' => 12,
		'serviceNowTime' => $shnunc,
	];
	$shonubody = file_get_contents("php://input");
	$shonupost = json_decode($shonubody, true);
	if ($_SERVER['REQUEST_METHOD'] != 'GET') {		
		if (isset($shonupost['language']) && isset($shonupost['random']) && isset($shonupost['signature']) && isset($shonupost['timestamp'])) {
			$language = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['language']));
			$random = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['random']));
			$signature = htmlspecialchars(mysqli_real_escape_string($conn, $shonupost['signature']));
			$shonustr = '{"language":'.$language.',"random":"'.$random.'"}';
			$shonusign = strtoupper(md5($shonustr));
			if($shonusign == $signature){				
$data['popular']['platformList'] = [
    [
        'vendorId' => '23',
        'gameCode' => 'aksofts_inout_chicken_road',
        'imgUrl'   => 'https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/121.png',
        'winOdds'  => mt_rand(9000, 10000) / 100
    ],
    [
        'vendorId' => '40',
        'gameCode' => 'WinGo_30S',
        'imgUrl'   => 'https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/ARLottery/WinGo_30S_20250812193414816.png',
        'winOdds'  => mt_rand(9000, 10000) / 100
    ],
    [
        'vendorId' => '23',
        'gameCode' => '800',
        'imgUrl'   => 'https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/800.png',
        'winOdds'  => mt_rand(9000, 10000) / 100
    ],
    [
        'vendorId' => '20',
        'gameCode' => 'aviator',
        'imgUrl'   => 'https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/SPRIBE/22001.png',
        'winOdds'  => mt_rand(9000, 10000) / 100
    ],
    [
        'vendorId' => '23',
        'gameCode' => '123',
        'imgUrl'   => 'https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/123.png',
        'winOdds'  => mt_rand(9000, 10000) / 100
    ],
    [
        'vendorId' => '23',
        'gameCode' => '124',
        'imgUrl'   => 'https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/124.png',
        'winOdds'  => mt_rand(9000, 10000) / 100
    ]
];

$data['popular']['clicksVideoTopList'] = [
    [
        'vendorId' => '16',
        'gameCode' => '9f4xhuhdd005xlbl',
        'gameNameEn' => 'Blackjack Silver B',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/9f4xhuhdd005xlbl.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'AmericanTable001',
        'gameNameEn' => 'American Roulette',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/AmericanTable001.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'AndarBahar000001',
        'gameNameEn' => 'Super Andar Bahar',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/AndarBahar000001.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'BacBo00000000001',
        'gameNameEn' => 'Bac Bo',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/BacBo00000000001.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'bciewncrf5ijneys',
        'gameNameEn' => 'Blackjack VIP U',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/bciewncrf5ijneys.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'bghflgi59db7d7r2',
        'gameNameEn' => 'Blackjack VIP X',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/bghflgi59db7d7r2.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'BonsaiBacc000001',
        'gameNameEn' => 'Bonsai Speed Baccarat A',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/BonsaiBacc000001.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'BonsaiBacc000002',
        'gameNameEn' => 'Bonsai Speed Baccarat B',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/BonsaiBacc000002.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ],
    [
        'vendorId' => '16',
        'gameCode' => 'BonsaiBacc000003',
        'gameNameEn' => 'Bonsai Speed Baccarat C',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/EVO_Video/BonsaiBacc000003.png',
        'imgUrl2' => '',
        'winOdds' => 0.0
    ]
];
$data['sport'] = [
    [
        "slotsTypeID" => 25,
        "slotsName" => "Wickets9",
        "state" => 1,
        "vendorImg" => "https://ossimg.dmwinimage.com/DmWin/vendorlogo/vendorlogo_20240918105650t694.png"
    ],
    [
        "slotsTypeID" => 14,
        "slotsName" => "SaBa",
        "state" => 1,
        "vendorImg" => "https://ossimg.dmwinimage.com/DmWin/vendorlogo/vendorlogo_20240918105703rfny.png"
    ]
];

$data['lottery'] = [
    [
        "id" => 1,
        "categoryCode" => "Win Go",
        "categoryName" => "WinGo彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.bdg123456.com/BDGWin/lotterycategory/lotterycategory_20240321194458iceq.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 2,
        "categoryCode" => "K3",
        "categoryName" => "K3彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.bdg123456.com/BDGWin/lotterycategory/lotterycategory_20240321194451en5o.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 3,
        "categoryCode" => "5D",
        "categoryName" => "5D彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.bdg123456.com/BDGWin/lotterycategory/lotterycategory_20240321194510h9i1.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ]
];

$data['awardRecordList'] = [
    [
        "orderId" => 3680463,
        "userId" => 2796393,
        "userPhoto" => "1",
        "userName" => "917828775413",
        "gameName" => "Mines",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/TB_Chess/100.png",
        "imgUrl2" => "",
        "multiple" => 18.59,
        "bonusAmount" => 20.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 10:42:00"
    ],
    [
        "orderId" => 3680462,
        "userId" => 3868126,
        "userPhoto" => "1",
        "userName" => "919565594888",
        "gameName" => "Fortune Gems",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/109.png",
        "imgUrl2" => "",
        "multiple" => 26.67,
        "bonusAmount" => 50.00,
        "multipleName" => "20-29.99",
        "createTime" => "2024-11-06 10:42:00"
    ],
    [
        "orderId" => 3680461,
        "userId" => 4067380,
        "userPhoto" => "1",
        "userName" => "918971120563",
        "gameName" => "Fortune Gems 2",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/223.png",
        "imgUrl2" => "",
        "multiple" => 10.00,
        "bonusAmount" => 20.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 10:42:00"
    ],
    [
        "orderId" => 3680460,
        "userId" => 3868126,
        "userPhoto" => "1",
        "userName" => "919565594888",
        "gameName" => "Fortune Gems",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/109.png",
        "imgUrl2" => "",
        "multiple" => 26.67,
        "bonusAmount" => 50.00,
        "multipleName" => "20-29.99",
        "createTime" => "2024-11-06 10:42:00"
    ],
    [
        "orderId" => 3680459,
        "userId" => 3117774,
        "userPhoto" => "1",
        "userName" => "918003821973",
        "gameName" => "Fortune Gems 2",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/223.png",
        "imgUrl2" => "",
        "multiple" => 30.00,
        "bonusAmount" => 100.00,
        "multipleName" => "30-39.99",
        "createTime" => "2024-11-06 10:42:00"
    ]
];
$data['slot'] = [
    [
        "slotsTypeID" => 18,
        "slotsName" => "JILI",
        "state" => 1,
        "vendorImg" => "https://ossimg.bdg123456.com/BDGWin/vendorlogo/vendorlogo_20240321183353rwkf.png"
    ]
];
$data['video'] = [
    [
        "slotsTypeID" => 7,
        "slotsName" => "Dream Gaming",
        "gameCode" => "ak_dream_gaming_lobby",
        "state" => 1,
        "vendorImg" => "https://ossimg.bdg123456.com/BDGWin/vendorlogo/vendorlogo_20240814164556aebw.png"
    ],
    [
        "slotsTypeID" => 16,
        "slotsName" => "EVO_Video",
        "gameCode" => "ak_evo_lobby", 
        "state" => 1,
        "vendorImg" => "https://ossimg.bdg123456.com/BDGWin/vendorlogo/vendorlogo_202408141645094l9r.png"
    ],
    [
        "slotsTypeID" => 27,
        "slotsName" => "SEXY_Video", 
        "gameCode" => "ak_live_sexy_dragontiger",
        "state" => 1,
        "vendorImg" => "https://ossimg.bdg123456.com/BDGWin/vendorlogo/vendorlogo_20240814164544e2mx.png"
    ]
];
$data['fish'] = [
    [
        "gameID" => "ak_cq9_paradise",
        "gameNameEn" => "Paradise",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/AB3.png",
        "vendorId" => 2,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "ak_cq9_lucky_bats",
        "gameNameEn" => "OneShotFishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/AT01.png",
        "vendorId" => 2,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "ak_cq9_luckyfishing",
        "gameNameEn" => "LuckyFishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/AT05.png",
        "vendorId" => 2,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "ak_cq9_hero_fishing",
        "gameNameEn" => "Hero Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/GO02.png",
        "vendorId" => 2,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "67001",
        "gameNameEn" => "Fighting Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/67001.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7001",
        "gameNameEn" => "Dragon Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7001.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7002",
        "gameNameEn" => "Dragon Fishing II",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7002.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7003",
        "gameNameEn" => "CaiShen Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7003.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7004",
        "gameNameEn" => "Shade Dragons Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7004.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7005",
        "gameNameEn" => "Fishing YiLuFa",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7005.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7006",
        "gameNameEn" => "DragonMaster",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7006.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "7007",
        "gameNameEn" => "Fishing Disco",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/7007.png",
        "vendorId" => 6,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "1",
        "gameNameEn" => "Royal Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/1.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "119",
        "gameNameEn" => "All-star Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/119.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "20",
        "gameNameEn" => "Bombing Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/20.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "212",
        "gameNameEn" => "Dinosaur Tycoon II",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/212.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "32",
        "gameNameEn" => "Jack Pot Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/32.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "42",
        "gameNameEn" => "Dinosaur Tycoon",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/42.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "60",
        "gameNameEn" => "Dragon Fortune",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/60.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "71",
        "gameNameEn" => "Boom Legend",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/71.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "74",
        "gameNameEn" => "Mega Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/74.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "82",
        "gameNameEn" => "Happy Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/82.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "510",
        "gameNameEn" => "Fishing Wars",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/V8Card/510.png",
        "vendorId" => 21,
        "imgUrl2" => "",
        "customGameType" => 0
    ]
];
$data['flash'] = [
    // [ "gameID" => "14091", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/121.png", 'gameCode' => 'aksofts_inout_chicken_road', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_aviator", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/800.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_aviator", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/SPRIBE/22001.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14087", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/123.png", 'gameCode' => 'aksofts_inout_chicken_road_2_0', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_limbo", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/110.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_hilo", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/101.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_mines", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/100.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_keno", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/900.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_hotline", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/107.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_mines", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/811.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_dice", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/102.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_plinko", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/103.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_hilo", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/504.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_hotline", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/107.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_goal", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/502.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_mines", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/501.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_mines", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/500.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_mines", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/119.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "spribe_roulette", "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/104_20240813135532834.png", "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14059", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/682722833bfdec7079fd71d2_Ultimaye%20(4).png", 'gameCode' => 'aksofts_inout_penalty_unlimited', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14058", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/66158d304693b2c62bd4f69b_JOKER%20POKER.png", 'gameCode' => 'aksofts_inout_joker_poker', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14055", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/66156af3fd8c65af363dbd6d_STAIRS.png", 'gameCode' => 'aksofts_inout_stairs', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14054", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/66154836587576e2f02e3a45_lucky%20mines.png", 'gameCode' => 'aksofts_inout_lucky_mines', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14053", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/65f27fc84475cceceb4f38f1_coinflip.png", 'gameCode' => 'aksofts_inout_coinflip', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14052", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/66156403286709119865575d_bubbles.png", 'gameCode' => 'aksofts_inout_bubbles', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14051", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/6615749db056d0483d595c01_mines.png", 'gameCode' => 'aksofts_inout_mines', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14050", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/66156ef2950ba984597ce1bc_goblin%20tower.png", 'gameCode' => 'aksofts_inout_goblin_tower', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14048", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/6615801ee9dd454c714059e1_double%20online.png", 'gameCode' => 'aksofts_inout_double', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14047", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/6615848af5aa80909b5ae9d0_cryptos.png", 'gameCode' => 'aksofts_inout_cryptos', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14045", "img" => "https://ossimg.bdgadminbdg.com/IndiaBDG/gamelogo/TB_Chess/105.png", 'gameCode' => 'aksofts_inout_forest_fortune', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14044", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/6613e0984564d0a3163c87ca_plinko%201000.jpg", 'gameCode' => 'aksofts_inout_plinko_1000', "vendorId" => 23, "customGameType" => 0 ],
    [ "gameID" => "14043", "img" => "https://cdn.prod.website-files.com/65e508fe833fc8d3e049ee44/66157e432622c87ee70dffb4_wheel.png", 'gameCode' => 'aksofts_inout_wheel', "vendorId" => 23, "customGameType" => 0 ],
];

$data['lottery'] = [
    [
        "id" => 1,
        "categoryCode" => "Win Go",
        "categoryName" => "WinGo彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.dmwinimage.com/DmWin/lotterycategory/lotterycategory_20240918105147t7uw.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 2,
        "categoryCode" => "K3",
        "categoryName" => "K3彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.dmwinimage.com/DmWin/lotterycategory/lotterycategory_20240918105155n6xx.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 3,
        "categoryCode" => "5D",
        "categoryName" => "5D彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.dmwinimage.com/DmWin/lotterycategory/lotterycategory_20240918105202ovry.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 4,
        "categoryCode" => "Trx Win Go",
        "categoryName" => "TrxWinGo彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.dmwinimage.com/DmWin/lotterycategory/lotterycategory_20240918105210g4n3.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ]
];

$data['awardRecordList'] = [
    [
        "orderId" => 3686187,
        "userId" => 5177592,
        "userPhoto" => "6",
        "userName" => "918354063640",
        "gameName" => "Crazy777",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/35.png",
        "imgUrl2" => "",
        "multiple" => 66.67,
        "bonusAmount" => 250.00,
        "multipleName" => "60-99999",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686186,
        "userId" => 535736,
        "userPhoto" => "1",
        "userName" => "959929202173",
        "gameName" => "Money Coming",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/51.png",
        "imgUrl2" => "",
        "multiple" => 20.00,
        "bonusAmount" => 100.00,
        "multipleName" => "20-29.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686185,
        "userId" => 6163018,
        "userPhoto" => "1",
        "userName" => "919166143942",
        "gameName" => "Wheel",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/236.png",
        "imgUrl2" => "",
        "multiple" => 14.00,
        "bonusAmount" => 20.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686184,
        "userId" => 6721420,
        "userPhoto" => "1",
        "userName" => "919510027410",
        "gameName" => "Fortune Gems 2",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/223.png",
        "imgUrl2" => "",
        "multiple" => 20.00,
        "bonusAmount" => 50.00,
        "multipleName" => "20-29.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686183,
        "userId" => 6065144,
        "userPhoto" => "20",
        "userName" => "916261265979",
        "gameName" => "Money Coming",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/51.png",
        "imgUrl2" => "",
        "multiple" => 20.00,
        "bonusAmount" => 50.00,
        "multipleName" => "20-29.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686182,
        "userId" => 3326510,
        "userPhoto" => "5",
        "userName" => "919521542981",
        "gameName" => "Money Coming",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/51.png",
        "imgUrl2" => "",
        "multiple" => 25.00,
        "bonusAmount" => 50.00,
        "multipleName" => "20-29.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686181,
        "userId" => 6166646,
        "userPhoto" => "4",
        "userName" => "918181815448",
        "gameName" => "Fortune Gems 2",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/223.png",
        "imgUrl2" => "",
        "multiple" => 10.67,
        "bonusAmount" => 20.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686180,
        "userId" => 6607199,
        "userPhoto" => "1",
        "userName" => "9106000020581",
        "gameName" => "Money Coming",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/51.png",
        "imgUrl2" => "",
        "multiple" => 10.00,
        "bonusAmount" => 50.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686179,
        "userId" => 1119113,
        "userPhoto" => "1",
        "userName" => "916264954165",
        "gameName" => "Boxing King",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/77.png",
        "imgUrl2" => "",
        "multiple" => 10.80,
        "bonusAmount" => 50.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 14:39:02"
    ],
    [
        "orderId" => 3686178,
        "userId" => 6065144,
        "userPhoto" => "20",
        "userName" => "916261265979",
        "gameName" => "Money Coming",
        "imgUrl" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/51.png",
        "imgUrl2" => "",
        "multiple" => 10.00,
        "bonusAmount" => 50.00,
        "multipleName" => "10-19.99",
        "createTime" => "2024-11-06 14:39:02"
    ]
];
$data['chess'] = [
    [
        "slotsTypeID" => 19,
        "slotsName" => "Card365",
        "state" => 1,
        "vendorImg" => "https://ossimg.dmwinimage.com/DmWin/vendorlogo/vendorlogo_20240918105508k92j.png"
    ],
    [
        "slotsTypeID" => 21,
        "slotsName" => "V8Card",
        "state" => 1,
        "vendorImg" => "https://ossimg.dmwinimage.com/DmWin/vendorlogo/vendorlogo_20240918105517vpqu.png"
    ]
];
		
			
				$res['data'] = $data;
				$res['code'] = 0;
				$res['msg'] = 'Succeed';
				$res['msgCode'] = 0;
				http_response_code(200);
				echo json_encode($res);
			}
			else{
				$res['code'] = 5;
				$res['msg'] = 'Wrong signature';
				$res['msgCode'] = 3;
				http_response_code(200);
				echo json_encode($res);
			}
		}
		else{
			$res['code'] = 7;
			$res['msg'] = 'Param is Invalid';
			$res['msgCode'] = 6;
			http_response_code(200);
			echo json_encode($res);
		}		
	} else {		
		http_response_code(405);
		echo json_encode($res);
	}
?>