<?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' => '20',
        'gameCode' => 'a04d1f3eb8ccec8a4823bdf18e3f0e84',
        'gameNameEn' => 'Aviator',
        'imgUrl' => 'https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/800_20250210113151122.png',
        'imgUrl2' => '',
        'winOdds' => 93.46
    ],
    [
        'vendorId' => '2',
        'gameCode' => 'fb33a6613e5ba5b8e42f035fbd4e103d',
        'gameNameEn' => 'Zeus M',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/125.png',
        'imgUrl2' => '',
        'winOdds' => 89.18
    ],
    [
        'vendorId' => '6',
        'gameCode' => 'b560b7c42bd29f7d0cda06485a3c4af5',
        'gameNameEn' => 'Lucky Seven',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/14027.png',
        'imgUrl2' => '',
        'winOdds' => 80.49
    ],
    [
        'vendorId' => '18',
        'gameCode' => '109',
        'gameNameEn' => 'Fortune Gems',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/109.png',
        'imgUrl2' => '',
        'winOdds' => 92.09
    ],
    [
        'vendorId' => '18',
        'gameCode' => '664fba4da609ee82b78820b1f570f4ad',
        'gameNameEn' => 'Fortune Gems 2',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/223.png',
        'imgUrl2' => '',
        'winOdds' => 85.62
    ]
];
$data['popular']['clicksTopList'] = [
    [
        'vendorId' => '18',
        'gameCode' => 'db249defce63610fccabfa829a405232',
        'gameNameEn' => 'Money Coming',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/51.png',
        'imgUrl2' => '',
        'winOdds' => 83.49
    ],
    [
        'vendorId' => '18',
        'gameCode' => 'a990de177577a2e6a889aaac5f57b429',
        'gameNameEn' => 'Fortune Gems',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/109.png',
        'imgUrl2' => '',
        'winOdds' => 92.09
    ],
    [
        'vendorId' => '18',
        'gameCode' => '664fba4da609ee82b78820b1f570f4ad',
        'gameNameEn' => 'Fortune Gems 2',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/223.png',
        'imgUrl2' => '',
        'winOdds' => 85.62
    ],
    [
        'vendorId' => '2',
        'gameCode' => '7057b9185aaee613216ff18352ad1c2f',
        'gameNameEn' => 'Hot Spin',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/19.png',
        'imgUrl2' => '',
        'winOdds' => 82.73
    ],
    [
        'vendorId' => '4',
        'gameCode' => 'daabc9426034dc78ce3c6b5c5bb1c3d6',
        'gameNameEn' => 'Wildfire Wins',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/MG/SMG_wildfireWins.png',
        'imgUrl2' => '',
        'winOdds' => 92.56
    ],
    [
        'vendorId' => '6',
        'gameCode' => 'b560b7c42bd29f7d0cda06485a3c4af5',
        'gameNameEn' => 'Lucky Seven',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/14027.png',
        'imgUrl2' => '',
        'winOdds' => 80.49
    ],
    [
        'vendorId' => '18',
        'gameCode' => '28bc4a33c985ddce6acd92422626b76f',
        'gameNameEn' => 'Charge Buffalo',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/47.png',
        'imgUrl2' => '',
        'winOdds' => 80.79
    ],
    [
        'vendorId' => '18',
        'gameCode' => '8c62471fd4e28c084a61811a3958f7a1',
        'gameNameEn' => 'Crazy777',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/35.png',
        'imgUrl2' => '',
        'winOdds' => 88.23
    ],
    [
        'vendorId' => '18',
        'gameCode' => 'bdfb23c974a2517198c5443adeea77a8',
        'gameNameEn' => 'Super Ace',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/49.png',
        'imgUrl2' => '',
        'winOdds' => 82.79
    ],
    [
        'vendorId' => '2',
        'gameCode' => '8beb52f0188e78a2f39cd5ea63e22232',
        'gameNameEn' => 'OneShotFishing',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/AT01.png',
        'imgUrl2' => '',
        'winOdds' => 88.06
    ],
    [
        'vendorId' => '18',
        'gameCode' => '71c68a4ddb63bdc8488114a08e603f1c',
        'gameNameEn' => 'Happy Fishing',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/82.png',
        'imgUrl2' => '',
        'winOdds' => 87.31
    ],
    [
        'vendorId' => '6',
        'gameCode' => '16b1418fe87a6fa5628eec8cb40da056',
        'gameNameEn' => 'Billionaire',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/JDB/14006.png',
        'imgUrl2' => '',
        'winOdds' => 80.48
    ],
    [
        'vendorId' => '2',
        'gameCode' => '08ced9dd788aed11ff3c7f387ae0f063',
        'gameNameEn' => 'Paradise',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/AB3.png',
        'imgUrl2' => '',
        'winOdds' => 90.36
    ],
    [
        'vendorId' => '2',
        'gameCode' => 'fb33a6613e5ba5b8e42f035fbd4e103d',
        'gameNameEn' => 'Zeus M',
        'imgUrl' => 'https://ossimg.bdg123456.com/BDGWin/gamelogo/CQ9/125.png',
        'imgUrl2' => '',
        'winOdds' => 89.18
    ],
   
];
$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'] = [
  [
        "gameID" => "3cf4a85cb6dcf4d8836c982c359cd72d",
        "gameNameEn" => "Jack Pot Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/32.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "eef3e28f0e3e7b72cbca61e7924d00f1",
        "gameNameEn" => "Dinosaur Tycoon",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/42.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "1200b82493e4788d038849bca884d773",
        "gameNameEn" => "Dragon Fortune",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/60.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "f02ede19c5953fce22c6098d860dadf4",
        "gameNameEn" => "Boom Legend",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/71.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "caacafe3f64a6279e10a378ede09ff38",
        "gameNameEn" => "Mega Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/74.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "71c68a4ddb63bdc8488114a08e603f1c",
        "gameNameEn" => "Happy Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/82.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ]  
];

$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.91admin123admin.com/91club/vendorlogo/vendorlogo_20250210101450ooy8.png"
    ]
];
$data['video'] = [
    [
        "gameID" => "3cf4a85cb6dcf4d8836c982c359cd72d",
        "gameNameEn" => "Jack Pot Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/32.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "eef3e28f0e3e7b72cbca61e7924d00f1",
        "gameNameEn" => "Dinosaur Tycoon",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/42.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "1200b82493e4788d038849bca884d773",
        "gameNameEn" => "Dragon Fortune",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/60.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "f02ede19c5953fce22c6098d860dadf4",
        "gameNameEn" => "Boom Legend",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/71.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "caacafe3f64a6279e10a378ede09ff38",
        "gameNameEn" => "Mega Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/74.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "71c68a4ddb63bdc8488114a08e603f1c",
        "gameNameEn" => "Happy Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/82.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ]
];
$data['fish'] = [
    [
        "gameID" => "e794bf5717aca371152df192341fe68b",
        "gameNameEn" => "Royal Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/1.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "9ec2a18752f83e45ccedde8dfeb0f6a7",
        "gameNameEn" => "All-star Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/119.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "e333695bcff28acdbecc641ae6ee2b23",
        "gameNameEn" => "Bombing Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/20.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "bbae6016f79f3df74e453eda164c08a4",
        "gameNameEn" => "Dinosaur Tycoon II",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/212.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "3cf4a85cb6dcf4d8836c982c359cd72d",
        "gameNameEn" => "Jack Pot Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/32.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "eef3e28f0e3e7b72cbca61e7924d00f1",
        "gameNameEn" => "Dinosaur Tycoon",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/42.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "1200b82493e4788d038849bca884d773",
        "gameNameEn" => "Dragon Fortune",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/60.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "f02ede19c5953fce22c6098d860dadf4",
        "gameNameEn" => "Boom Legend",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/71.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "caacafe3f64a6279e10a378ede09ff38",
        "gameNameEn" => "Mega Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/74.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "71c68a4ddb63bdc8488114a08e603f1c",
        "gameNameEn" => "Happy Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/82.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ]
];
$data['flash'] = [
    [
        "gameID" => "a04d1f3eb8ccec8a4823bdf18e3f0e84",
        "gameNameEn" => "Aviator",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/800_20250210113151122.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "8a87aae7a3624d284306e9c6fe1b3e9c",
        "gameNameEn" => "Dice",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/102_20250210111705541.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "c68a515f0b3b10eec96cf6d33299f4e2",
        "gameNameEn" => "Goal",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/105_20250210113618898.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "6ab7a4fe5161936012d6b06143918223",
        "gameNameEn" => "Plinko",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/103_20250210111953841.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "5c4a12fb0a9b296d9b0d5f9e1cd41d65",
        "gameNameEn" => "Mines",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/100.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "a669c993b0e1f1b7da100fcf95516bdf",
        "gameNameEn" => "Hilo",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/101_20250210111652965.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "c311eb4bbba03b105d150504931f2479",
        "gameNameEn" => "Keno",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/106.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "9dc7ac6155c5a19c1cc204853e426367",
        "gameNameEn" => "Mini Roulette",
        "img" => "https://ossimg.91admin123admin.com/91club/gamelogo/TB_Chess/104_20250210111939890.png",
        "vendorId" => 20,
        "imgUrl2" => "",
        "customGameType" => 0
    ]
];
$data['lottery'] = [
    [
        "id" => 1,
        "categoryCode" => "Win Go",
        "categoryName" => "WinGo彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.91admin123admin.com/91club/lotterycategory/lotterycategory_202502101011154e3a.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 2,
        "categoryCode" => "K3",
        "categoryName" => "K3彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.91admin123admin.com/91club/lotterycategory/lotterycategory_20250210101053ntrf.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 3,
        "categoryCode" => "5D",
        "categoryName" => "5D彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.91admin123admin.com/91club/lotterycategory/lotterycategory_20250210101042iwui.png",
        "wingoAmount" => null,
        "k3Amount" => null,
        "fiveDAmount" => null,
        "trxWingoAmount" => null
    ],
    [
        "id" => 4,
        "categoryCode" => "TRX",
        "categoryName" => "TRX彩票",
        "state" => 1,
        "sort" => 0,
        "categoryImg" => "https://ossimg.91admin123admin.com/91club/lotterycategory/lotterycategory_20250210101104jtse.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'] = [
    [
        "gameID" => "eef3e28f0e3e7b72cbca61e7924d00f1",
        "gameNameEn" => "Dinosaur Tycoon",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/42.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "1200b82493e4788d038849bca884d773",
        "gameNameEn" => "Dragon Fortune",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/60.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "f02ede19c5953fce22c6098d860dadf4",
        "gameNameEn" => "Boom Legend",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/71.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "caacafe3f64a6279e10a378ede09ff38",
        "gameNameEn" => "Mega Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/74.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ],
    [
        "gameID" => "71c68a4ddb63bdc8488114a08e603f1c",
        "gameNameEn" => "Happy Fishing",
        "img" => "https://ossimg.bdg123456.com/BDGWin/gamelogo/JILI/82.png",
        "vendorId" => 18,
        "imgUrl2" => "",
        "customGameType" => 0
    ]

];
		
			
				$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);
	}
?>