input('gid');
$level = $request->input('level',0);
$user = $request->user();
$userid = $user->UserID;
GameCard::$enableStateCheck = false;
$gamecard = GameCard::where('gid', $gid)->first();
$in_gameid = OuroGameService::getUserInGame($userid, $user->GlobalUID);
if ($in_gameid != intval($gamecard->id)) {
Util::WriteLog('24680game', compact('in_gameid', 'gamecard', 'user'));
// die;
}
$gamecard = GameCard::where('gid', $gid)->where('brand', 'PGSoft')->first();
$gamecard->increment('play_num', 1);
//$this->logGameClick($gamecard->id,$userid);
LogGamecardClick::recordClick($gamecard->id, $userid);
$lang = GlobalUserInfo::getLocale();
$supportLang = ['en', 'da', 'de', 'es', 'fi', 'fr', 'id', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tr', 'vi', 'zh', 'my'];
if (!in_array($lang, $supportLang)) {
$lang = 'en';
}
$cdnserver = 'https://static2.pgn-nmu2nd.com';
$sign = GlobalUserInfo::genGuuidSign($user);
$or = $this->convertString('static2.pgn-nmu2nd.com');
$api = $this->convertString('api.pgn-nmu2nd.com');
$params = ['l' => $lang, 'ot' => $sign, 'btt' => $level>0?$level+2:1, 't' => $user->GlobalUID, 'or' => $or, 'api' => $api,'__hv'=>base64_encode($api)];
$url = $cdnserver . "/$gid/index.html?" . http_build_query($params);
// https://static2.pgn-nmu2nd.com/57/index.html?l=zh&ot=&btt=1&t=917c74999c-b53b-eb1a-0004478930&or=static2.pgn-nmu2nd.com&api=api.pgn-nmu2nd.com
// dd($url);
echo "";
return "";
}
public function leaveOrg(Request $request){
$UserID = $request->UserID;
$config = ServerService::GetGlobalServerInfoByCode(ServerService::GetLocalSign());
$api = [
'Bangladesh'=> "bdapi.pgn-nmu2nd.com",
'Pakistan' => "pkapi.pgn-nmu2nd.com",
'OrgBrazil' => "orgbr.pgn-nmu2nd.com",
'Brazil' => "brapi.pgn-nmu2nd.com",
'Europe' => "euapi.pgn-nmu2nd.com",
'Russia' => "ruapi.pgn-nmu2nd.com",
'Mexico' => "mxapi.pgn-nmu2nd.com",
'Singapore' => "sgapi.pgn-nmu2nd.com",
'Latin' => "saapi.pgn-nmu2nd.com",
][$config['Subsite']];
try {
file_get_contents("https://$apiv2/removePlayer/Get?UserID=$UserID");
}catch (\Exception $e){
}
DB::connection('write')->table('QPTreasureDB.dbo.GameScoreLocker')
->where('UserID', $UserID)
->delete();
return '';
}
public function gameLunchOrg(Request $request)
{
$gid = $request->input('gid');
$level=$request->input('level',0);
$lang=$request->input('lang','pu');
$lang=['pu'=>'pt','en'=>'en','sp'=>'es','ur'=>'en'][$lang]??$lang;
$userid = $request->UserID;
$GlobalUID = 'a1b1c1-b53b-'.ServerService::GetLocalSign().'-' . $userid;
GameCard::$enableStateCheck = false;
$gamecard = GameCard::where('gid', $gid)->first();
$in_gameid = OuroGameService::getUserInGame($userid, $GlobalUID);
if ($in_gameid != intval($gamecard->id)) {
Util::WriteLog('24680game', compact('in_gameid', 'gamecard', 'GlobalUID'));
// die;
}
$gamecard = GameCard::where('gid', $gid)->where('brand', 'PGSoft')->first();
$gamecard->increment('play_num', 1);
//$this->logGameClick($gamecard->id,$userid);
LogGamecardClick::recordClick($gamecard->id, $userid);
// $lang = GlobalUserInfo::getLocale();
$supportLang = ['en', 'da', 'de', 'es', 'fi', 'fr', 'id', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tr', 'vi', 'zh', 'my'];
if (!in_array($lang, $supportLang)) {
$lang = 'en';
}
$cdnserver = 'https://static2.pgn-nmu2nd.com';
$LogonPass='123';
$sign = GlobalUserInfo::genGuuidSign((object)compact('GlobalUID','LogonPass'));
$or = $this->convertString('static2.pgn-nmu2nd.com');
$api = $this->convertString('orgbr.pgn-nmu2nd.com');
// $api = $this->convertString('api.pgn-nmu2nd.com');
$params = ['l' => $lang, 'ot' => $sign, 'btt' => $level>0?$level+2:1, 't' => $GlobalUID, 'or' => $or, 'api' => $api,'_tt'=>time(),'__hv'=>base64_encode($api)];
$url = $cdnserver . "/$gid/index.html?" . http_build_query($params);
// https://static2.pgn-nmu2nd.com/57/index.html?l=zh&ot=&btt=1&t=917c74999c-b53b-eb1a-0004478930&or=static2.pgn-nmu2nd.com&api=api.pgn-nmu2nd.com
// dd($url);
$trans="rotated-iframe-container";
$userAgent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($userAgent,"iPhone") || strpos($userAgent,"iPad") || strpos($userAgent,"iPod")){
}else{
if($request->input('norot',0)==1){
$trans="no-rotated-iframe-container";
}
}
$leaveUrl=$request->getSchemeAndHttpHost().'/api/pgsoft/leave?UserID='.$userid;
echo '
PGSoft
';
return "";
}
private function convertString($input)
{
return "13" . str_rot13($input);
}
private function log(Request $request, $addLog = "")
{
$post = $request->all();
Util::WriteLog('pgsim', $post);
if (!empty($addLog)) Util::WriteLog('pgsim', $addLog);
}
public function GetByResourcesTypeIds(Request $request)
{
$this->log($request);
return '{"dt":[{"rid":2,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/2/tournament_home_game_bg@3x-4a686660.png","l":"en-US","ut":"2019-08-21T03:55:17"},{"rid":3,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/3/tournament_home_game_bg@3x-ae889c75.png","l":"en-US","ut":"2019-08-21T03:55:21"},{"rid":6,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/6/tournament_home_game_bg@3x-4daf726e.png","l":"en-US","ut":"2019-08-21T03:55:28"},{"rid":7,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/7/tournament_home_game_bg@3x-a90820cc.png","l":"en-US","ut":"2019-08-21T03:55:33"},{"rid":18,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/18/tournament_home_game_bg@3x-a4ef3c07.png","l":"en-US","ut":"2019-08-21T03:55:53"},{"rid":24,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/24/tournament_home_game_bg@3x-5c70d0da.png","l":"en-US","ut":"2019-08-21T03:56:05"},{"rid":25,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/25/tournament_home_game_bg@3x-7302cdd8.png","l":"en-US","ut":"2019-08-21T03:56:07"},{"rid":26,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/26/tournament_home_game_bg@3x-4eee91a2.png","l":"en-US","ut":"2019-08-21T03:56:08"},{"rid":28,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/28/tournament_home_game_bg_en@3x-49244d74.png","l":"en-US","ut":"2019-08-21T03:56:14"},{"rid":29,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/29/tournament_home_game_bg@3x-7f04d150.png","l":"en-US","ut":"2019-08-21T03:56:16"},{"rid":31,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/31/tournament_home_game_bg@3x-9187dfae.png","l":"en-US","ut":"2019-08-21T03:56:18"},{"rid":33,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/33/tournament_home_game_bg@3x-ed3e974d.png","l":"en-US","ut":"2019-08-21T03:56:20"},{"rid":34,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/34/tournament_home_game_bg@3x-d31438c7.png","l":"en-US","ut":"2019-08-21T03:56:21"},{"rid":35,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/35/tournament_home_game_bg@3x-d31baca7.png","l":"en-US","ut":"2019-08-21T03:56:21"},{"rid":36,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/36/tournament_home_game_bg@3x-84ea6821.png","l":"en-US","ut":"2019-08-21T03:56:24"},{"rid":37,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/37/tournament_home_game_bg@3x-7118c19a.png","l":"en-US","ut":"2019-08-21T03:56:25"},{"rid":38,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/38/tournament_home_game_bg@3x-cf9abedf.png","l":"en-US","ut":"2019-08-21T03:56:26"},{"rid":39,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/39/tournament_home_game_bg@3x-1e57fd45.png","l":"en-US","ut":"2019-08-21T03:56:28"},{"rid":40,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/40/tournament_home_game_bg@3x-9b56d47f.png","l":"en-US","ut":"2019-08-21T03:56:29"},{"rid":41,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/41/tournament_home_game_bg@3x-b3cd9f3a.png","l":"en-US","ut":"2019-08-21T03:56:31"},{"rid":42,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/42/tournament_home_game_bg@3x-48bfd38e.png","l":"en-US","ut":"2019-08-21T03:56:33"},{"rid":44,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/44/tournament_home_game_bg@3x-f91f7cf4.png","l":"en-US","ut":"2019-08-21T03:56:36"},{"rid":48,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/48/tournament_home_game_bg@3x-f0aecb37.png","l":"en-US","ut":"2019-08-21T03:56:52"},{"rid":50,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/50/tournament_home_game_bg@3x-11a35a40.png","l":"en-US","ut":"2019-08-21T03:56:55"},{"rid":53,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/53/tournament_home_game_bg@3x-7a785b21.png","l":"en-US","ut":"2019-08-21T03:57:01"},{"rid":54,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/54/tournament_home_game_bg@3x-adffabd4.png","l":"en-US","ut":"2019-08-21T03:57:03"},{"rid":59,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/59/tournament_home_game_bg@3x-11a6028c.png","l":"en-US","ut":"2019-08-21T03:58:18"},{"rid":60,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/60/tournament_home_game_bg@3x-f3ce8913.png","l":"en-US","ut":"2019-08-21T03:58:22"},{"rid":61,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/61/tournament_home_game_bg@3x-6a342d9e.png","l":"en-US","ut":"2019-08-27T03:52:36"},{"rid":62,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/62/tournament_home_game_bg@3x-5f196531.png","l":"en-US","ut":"2019-09-30T04:54:26"},{"rid":64,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/64/tournament_home_game_bg@3x-9a0f6751.png","l":"en-US","ut":"2019-10-01T12:08:19"},{"rid":63,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/63/tournament_home_game_bg@3x-01cffb93.png","l":"en-US","ut":"2019-10-03T08:07:13"},{"rid":20,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/20/tournament_home_game_bg@3x-bf527720.png","l":"en-US","ut":"2019-11-22T04:42:02"},{"rid":57,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/57/tournament_home_game_bg@3x-6e17d699.png","l":"en-US","ut":"2019-12-16T08:30:31"},{"rid":68,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/68/tournament_home_game_bg@3x-18d8ce88.png","l":"en-US","ut":"2019-12-27T09:28:28"},{"rid":70,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/70/tournament_home_game_bg@3x-95d31d3a.png","l":"en-US","ut":"2020-02-13T09:58:36"},{"rid":71,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/71/tournament_home_game_bg@3x-8612d84f.png","l":"en-US","ut":"2020-02-19T02:50:48"},{"rid":67,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/67/tournament_home_game_bg@3x-4bc6b8a9.png","l":"en-US","ut":"2020-02-19T03:15:29"},{"rid":74,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/74/tournament_home_game_bg@3x-4b7ef02e.png","l":"en-US","ut":"2020-03-06T08:37:45"},{"rid":73,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/73/tournament_home_game_bg@3x-6bca9b8d.png","l":"en-US","ut":"2020-04-07T10:20:11"},{"rid":75,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/75/tournament_home_game_bg@3x-3133d594.png","l":"en-US","ut":"2020-04-14T06:57:07"},{"rid":82,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/82/TBG-aae184c5.png","l":"en-US","ut":"2020-05-28T02:37:39"},{"rid":79,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/79/TBG-d6fef93f.png","l":"en-US","ut":"2020-06-03T07:50:47"},{"rid":83,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/83/TBG-ce84a493.png","l":"en-US","ut":"2020-06-16T01:50:12"},{"rid":80,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/80/TBG-597cc4c9.png","l":"en-US","ut":"2020-07-08T08:39:10"},{"rid":84,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/84/TBG-2623fbf5.png","l":"en-US","ut":"2020-07-17T02:34:13"},{"rid":69,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/69/tournament_home_game_bg@3x-9be89d27.png","l":"en-US","ut":"2020-07-24T07:57:50"},{"rid":85,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/85/TBG-1989136f.png","l":"en-US","ut":"2020-07-27T11:08:59"},{"rid":65,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/65/tournament_home_game_bg@3x-20477dae.png","l":"en-US","ut":"2020-07-27T13:51:59"},{"rid":86,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/86/TBG-501a259e.png","l":"en-US","ut":"2020-07-28T12:03:48"},{"rid":87,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/87/TBG-830301e5.png","l":"en-US","ut":"2020-07-29T09:47:50"},{"rid":58,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/58/TBG-694b1da0.png","l":"en-US","ut":"2020-08-07T08:05:18"},{"rid":90,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/90/TBG-10deb8f4.png","l":"en-US","ut":"2020-08-21T07:12:00"},{"rid":92,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/92/TBG-f7730e55.png","l":"en-US","ut":"2020-09-01T03:51:33"},{"rid":93,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/93/TBG-666576f6.png","l":"en-US","ut":"2020-09-17T03:34:59"},{"rid":88,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/88/TBG-b8903067.png","l":"en-US","ut":"2020-09-28T09:10:25"},{"rid":97,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/97/TBG-6fddb222.png","l":"en-US","ut":"2020-09-29T07:32:56"},{"rid":94,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/94/TBG-4be6f990.png","l":"en-US","ut":"2020-09-29T07:33:48"},{"rid":101,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/101/TBG-aace1e24.png","l":"en-US","ut":"2020-10-08T08:03:23"},{"rid":98,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/98/TBG-79695fd8.png","l":"en-US","ut":"2020-10-09T07:08:00"},{"rid":102,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/102/TBG-e15d5387.png","l":"en-US","ut":"2020-10-12T09:13:27"},{"rid":100,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/100/TBG-2ac89054.png","l":"en-US","ut":"2020-10-14T03:32:54"},{"rid":89,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/89/TBG-0c327c4a.png","l":"en-US","ut":"2020-10-16T08:24:50"},{"rid":95,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/95/TBG-51b8a68b.png","l":"en-US","ut":"2020-10-20T10:39:00"},{"rid":91,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/91/TBG-a4d69769.png","l":"en-US","ut":"2020-10-28T08:24:12"},{"rid":105,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/105/TBG-b1b4cf53.png","l":"en-US","ut":"2020-10-28T10:32:33"},{"rid":104,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/104/TBG-fc5e4e84.png","l":"en-US","ut":"2020-10-28T10:32:33"},{"rid":106,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/106/TBG-89275712.png","l":"en-US","ut":"2020-11-09T07:35:04"},{"rid":107,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/107/TBG-60fae29a.png","l":"en-US","ut":"2020-11-09T07:35:04"},{"rid":108,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/108/TBG-bc83b030.png","l":"en-US","ut":"2020-12-01T03:24:24"},{"rid":103,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/103/TBG-ffe3441c.png","l":"en-US","ut":"2021-01-11T04:04:58"},{"rid":112,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/112/TBG-27e5ad44.png","l":"en-US","ut":"2021-01-21T02:38:33"},{"rid":113,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/113/TBG-98045dfc.png","l":"en-US","ut":"2021-02-02T07:31:26"},{"rid":114,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/114/TBG-c03206a3.png","l":"en-US","ut":"2021-02-22T02:50:58"},{"rid":115,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/115/TBG-b41e27d4.png","l":"en-US","ut":"2021-03-18T11:28:30"},{"rid":117,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/117/TBG-05957415.png","l":"en-US","ut":"2021-04-19T02:01:43"},{"rid":118,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/118/TBG-0415e436.png","l":"en-US","ut":"2021-04-19T02:01:43"},{"rid":119,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/119/TBG-e947ff58.png","l":"en-US","ut":"2021-05-24T03:43:13"},{"rid":120,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/120/TBG-80355752.png","l":"en-US","ut":"2021-06-21T04:33:50"},{"rid":121,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/121/TBG-dc542656.png","l":"en-US","ut":"2021-06-21T04:33:51"},{"rid":122,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/122/TBG-df454012.png","l":"en-US","ut":"2021-06-21T04:33:51"},{"rid":110,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/110/TBG-0195d3e5.png","l":"en-US","ut":"2021-06-24T07:49:50"},{"rid":125,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/125/TBG-15335dae.png","l":"en-US","ut":"2021-07-22T03:25:26"},{"rid":1,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/1/tournament_home_game_bg@3x-a92fa407.png","l":"en-US","ut":"2021-08-02T13:02:17"},{"rid":126,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/126/TBG-ea2d1bfa.png","l":"en-US","ut":"2021-08-24T10:16:12"},{"rid":130,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/lucky-piggy/TBG-0bc3d812.png","l":"en-US","ut":"2021-12-30T08:08:56"},{"rid":128,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/legend-perseus/TBG-a45fbc11.png","l":"en-US","ut":"2022-01-03T02:40:52"},{"rid":124,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/124/TBG-0a88d0c8.png","l":"en-US","ut":"2022-01-14T03:12:52"},{"rid":123,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/123/TBG-7eb6a246.png","l":"en-US","ut":"2022-03-02T04:42:37"},{"rid":129,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/win-win-fpc/TBG-7500c2a5.png","l":"en-US","ut":"2022-04-08T09:00:08"},{"rid":127,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/speed-winner/TBG-11cf1d30.png","l":"en-US","ut":"2022-05-30T03:11:11"},{"rid":132,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/wild-coaster/TBG-0aee5844.png","l":"en-US","ut":"2022-06-10T10:25:31"},{"rid":135,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/wild-bounty-sd/TBG-5664503f.png","l":"en-US","ut":"2022-06-21T08:53:46"},{"rid":1340277,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/asgardian-rs/TBG-c08f646a.png","l":"en-US","ut":"2022-06-22T10:22:41"},{"rid":1312883,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/prosper-ftree/TBG-936b7213.png","l":"en-US","ut":"2022-07-07T08:42:12"},{"rid":1338274,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/totem-wonders/TBG-b39afc06.png","l":"en-US","ut":"2022-07-13T03:29:58"},{"rid":1418544,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/bakery-bonanza/TBG-4c5d26e5.png","l":"en-US","ut":"2022-08-17T10:07:49"},{"rid":1372643,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/diner-delights/TBG-09bd3c48.png","l":"en-US","ut":"2022-08-18T02:32:05"},{"rid":1368367,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/alchemy-gold/TBG-4019183a.png","l":"en-US","ut":"2022-10-04T02:49:18"},{"rid":1402846,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/midas-fortune/TBG-fa0ff8ff.png","l":"en-US","ut":"2022-12-16T04:18:32"},{"rid":1543462,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/fortune-rabbit/TBG-e68c144f.png","l":"en-US","ut":"2023-01-06T08:51:52"},{"rid":1420892,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/rave-party-fvr/TBG-3348192b.png","l":"en-US","ut":"2023-02-10T06:31:55"},{"rid":1381200,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/hawaiian-tiki/TBG-be5e5caf.png","l":"en-US","ut":"2023-02-21T09:08:36"},{"rid":1448762,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/songkran-spl/TBG-d7c58d6b.png","l":"en-US","ut":"2023-03-30T02:10:20"},{"rid":1432733,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/myst-spirits/TBG-990fdcd0.png","l":"en-US","ut":"2023-04-17T10:24:16"},{"rid":1513328,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/spr-golf-drive/TBG-c4250bca.png","l":"en-US","ut":"2023-05-15T08:27:29"},{"rid":1601012,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/lucky-clover/TBG-1cffcce3.png","l":"en-US","ut":"2023-06-06T08:46:35"},{"rid":1397455,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/fruity-candy/TBG-5655dc74.png","l":"en-US","ut":"2023-07-04T10:31:01"},{"rid":1473388,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/cruise-royale/TBG-9f06474f.png","l":"en-US","ut":"2023-08-04T06:31:58"},{"rid":1594259,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/safari-wilds/TBG-5477a7d4.png","l":"en-US","ut":"2023-08-24T02:59:31"},{"rid":1572362,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/gladi-glory/TBG-0bb2a355.png","l":"en-US","ut":"2023-09-13T11:52:45"},{"rid":1529867,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/ninja-raccoon/TBG-237dd028.png","l":"en-US","ut":"2023-10-11T03:40:52"},{"rid":1489936,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/ult-striker/TBG-f2b18923.png","l":"en-US","ut":"2023-10-11T03:40:52"},{"rid":1568554,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/wild-heist-co/TBG-c110a538.png","l":"en-US","ut":"2023-10-25T04:36:49"},{"rid":1555350,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/forge-wealth/TBG-30e8dba3.png","l":"en-US","ut":"2023-11-08T06:15:09"},{"rid":1580541,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/mafia-mayhem/TBG-bef81dc7.png","l":"en-US","ut":"2023-11-30T08:42:38"},{"rid":1451122,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/dragon-hatch2/TBG-e353931f.png","l":"en-US","ut":"2024-01-03T03:34:13"},{"rid":1671262,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/gemstones-gold/TBG-c00f9638.png","l":"en-US","ut":"2024-02-22T09:45:28"},{"rid":1682240,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/cash-mania/TBG-da9cc1f9.png","l":"en-US","ut":"2024-03-04T08:17:29"},{"rid":1508783,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/wild-ape-3258/TBG-eb5bc66f.png","l":"en-US","ut":"2024-03-21T04:05:18"},{"rid":1492288,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/pinata-wins/TBG-cb62e837.png","l":"en-US","ut":"2024-04-02T09:29:58"},{"rid":1717688,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/mystic-potions/TBG-75cb842c.webp","l":"en-US","ut":"2024-04-19T09:10:08"},{"rid":1623475,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/anubis-wrath/TBG-3744b1d1.png","l":"en-US","ut":"2024-05-08T07:42:02"},{"rid":1635221,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/zombie-outbrk/TBG-dc692156.webp","l":"en-US","ut":"2024-05-30T14:56:06"},{"rid":1738001,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/chicky-run/TBG-f408432c.png","l":"en-US","ut":"2024-06-14T06:12:09"},{"rid":1778752,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/futebol-fever/TBG-517fc0f4.webp","l":"en-US","ut":"2024-06-26T09:11:03"},{"rid":1648578,"rtid":11,"url":"https://public.pg-demo.com/pages/static/image/en/Tournament_Bg/shark-hunter/TBG-561c325b.webp","l":"en-US","ut":"2024-07-11T08:29:22"}],"err":null}';
}
public function BetSummary(Request $request)
{
$this->log($request);
///gid: 1543462
//dtf: 1722355200000
//dtt: 1722959999999
//atk: S2VS1R6P-Q3B7-785R-WBRP-7EBO6LC651V3
//pf: 4
//wk: 0_C
//btt: 1
$gid = intval($request->gid);
if ($gid != 1543462) {
return [
"dt" => [
"lut" => $request->dtf,
"bs" => [
"gid" => $gid,
"bc" => 8,
"btba" => 4,
"btwla" => -3.40,
"lbid" => 12123212211111221,
]
],
"err" => null
];
}
// Redis::setex($newToken,3600,json_encode($data));
$user = json_decode(Redis::get($request->atk));
if (!$user) return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
$UserID = $user->UserID;
$record = DB::connection('mysql')->table('webgame.PgRecords')
->where('uid', $UserID)
->where('gid', $request->gid)
->whereBetween('bt', [$request->dtf, $request->dtt])
->selectRaw('count(*) as bc,sum(gtba) as btba,sum(gtwla) as btwla,max(tid) as lbid,max(bt) as lut')->get()->toArray();
$record = (array)$record[0];
return [
"dt" => [
"lut" => $record['lut'] ?? $request->dtf,
"bs" => [
"gid" => intval($request->gid),
"bc" => $record['bc'] ?? 0,
"btba" => floatval($record['btba'] ?? 0),
"btwla" => floatval($record['btwla'] ?? 0),
"lbid" => $record['lbid'] ?? null,
]
],
"err" => null
];
}
public static $readyGames = [1695365, 1543462, 68, 57, 42, 48, 1682240, 126, 98, 89, 104, 1451122, 1492288, 135];
public function BetHistory(Request $request)
{
// $this->log($request);
///gid: 1543462
//dtf: 1722873600000
//dtt: 1722959999999
//bn: 1
//rc: 15
//atk: 69TN676M-60PU-587G-QKVS-DC319L8RREGJ
//pf: 4
//wk: 0_C
//btt: 1
$gid = intval($request->gid);
$beginTime = intval($request->lbt ?? time() * 1000);
//假数据
if (!in_array($gid, self::$readyGames)) {
return $this->returnFakeHistory($gid);
}
$user = json_decode(Redis::get($request->atk));
// if(!$user)return ['dt'=>null,'err'=>'session expired'];
if (!$user) return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
$UserID = $user->UserID;
$records = DB::connection('mysql')->table('webgame.PgRecords')
->where('uid', $UserID)
->where('gid', $request->gid)
->whereBetween('bt', [$request->dtf, $request->dtt])
->where('bt', '<', $beginTime)
->selectRaw('tid,gid,cc,gtba,gtwla,bt,gd')
->orderBy('id', 'desc')
->limit(30)
->get()->toArray();
$items = [];
foreach ($records as &$record) {
$record = (array)$record;
$record['gtba'] = floatval($record['gtba']);
$record['gtwla'] = floatval($record['gtwla']);
$record['gd'] = json_decode($record['gd']);
$bd = [];
foreach ($record['gd'] as $gd) {
$gd = (array)$gd;
$arr = ["tid" => "1820491964999664640",
"tba" => $gd['tb'],
"twla" => $gd['tw'],
"bl" => $gd['bl'],
"bt" => $record['bt'],
"gd" => $gd
];
$bd[] = $arr;
}
$ge = $record['gd'][0]->ge;
if ($ge[0] == 4) $ge[] = 1;
$items[] = [
"tid" => $record['tid'],
"pid" => 0,
"gid" => $record['gid'],
"cc" => $record['cc'],
"gtba" => $record['gtba'],
"gtwla" => $record['gtwla'],
"bt" => $record['bt'],
"ge" => $ge,
"mgcc" => 0,
"fscc" => 0,
"bd" => $bd
];
}
$result = [
"dt" => [
"bh" => $items
],
"err" => null
];
return $result;
}
private function returnFakeHistory($gid)
{
$winitem = [
"tid" => "1820491964999664640",
"pid" => 0,
"gid" => $gid,
"cc" => "BRL",
"gtba" => 0.5,
"gtwla" => 0,
"bt" => 1722874083597,
"ge" => [
1,
11
],
"bd" => [
[
"tid" => "1820491964999664640",
"tba" => 0.5,
"twla" => 0,
"bl" => 310.62,
"bt" => 1722874082006,
"gd" => [
"wp" => [
"6" => [
1,
6,
9
],
"7" => [
1,
6,
10
]
],
"lw" => [
"6" => 0.25,
"7" => 0.25
],
"orl" => [
5,
5,
7,
99,
6,
6,
5,
5,
3,
5,
5,
99
],
"ift" => false,
"iff" => false,
"cpf" => [],
"cptw" => 0,
"crtw" => 0,
"imw" => false,
"fs" => null,
"gwt" => -1,
"fb" => null,
"ctw" => 0.5,
"pmt" => null,
"cwc" => 1,
"fstc" => null,
"pcwc" => 1,
"rwsp" => [
"6" => 5,
"7" => 5
],
"hashr" => "0:5;6;3#5;6;5#7;5;5#99;5;99#R#5#011221#MV#0.50#MT#1#R#5#011222#MV#0.50#MT#1#MG#0.50#",
"ml" => 1,
"cs" => 0.05,
"rl" => [
5,
5,
7,
99,
6,
6,
5,
5,
3,
5,
5,
99
],
"sid" => "1820491964999664640",
"psid" => "1820491964999664640",
"st" => 1,
"nst" => 1,
"pf" => 4,
"aw" => 0.5,
"wid" => 0,
"wt" => "C",
"wk" => "0_C",
"wbn" => null,
"wfg" => null,
"blb" => 310.62,
"blab" => 310.12,
"bl" => 310.62,
"tb" => 0.5,
"tbb" => 0.5,
"tw" => 0.5,
"np" => 0,
"ocr" => null,
"mr" => null,
"ge" => [
1,
11
]
]
]
],
"mgcc" => 0,
"fscc" => 0
];
$item = [
"tid" => "1820492035749183488",
"pid" => 0,
"gid" => $gid,
"cc" => "BRL",
"gtba" => 0.5,
"gtwla" => -0.5,
"bt" => 1722874100124,
"ge" => [
1,
11
],
"bd" => [
[
"tid" => "1820492035749183488",
"tba" => 0.5,
"twla" => -0.5,
"bl" => 307.72,
"bt" => 1722874099074,
"gd" => [
"wp" => null,
"lw" => null,
"orl" => [
5,
5,
5,
99,
6,
5,
5,
7,
4,
4,
6,
99
],
"ift" => false,
"iff" => false,
"cpf" => [],
"cptw" => 0,
"crtw" => 0,
"imw" => false,
"fs" => null,
"gwt" => -1,
"fb" => null,
"ctw" => 0,
"pmt" => null,
"cwc" => 0,
"fstc" => null,
"pcwc" => 0,
"rwsp" => null,
"hashr" => "0:5;6;4#5;5;4#5;5;6#99;7;99#MV#0.50#MT#1#MG#0#",
"ml" => 1,
"cs" => 0.05,
"rl" => [
5,
5,
5,
99,
6,
5,
5,
7,
4,
4,
6,
99
],
"sid" => "1820492035749183488",
"psid" => "1820492035749183488",
"st" => 1,
"nst" => 1,
"pf" => 4,
"aw" => 0,
"wid" => 0,
"wt" => "C",
"wk" => "0_C",
"wbn" => null,
"wfg" => null,
"blb" => 308.22,
"blab" => 307.72,
"bl" => 307.72,
"tb" => 0.5,
"tbb" => 0.5,
"tw" => 0,
"np" => -0.5,
"ocr" => null,
"mr" => null,
"ge" => [
1,
11
]
]
]
],
"mgcc" => 0,
"fscc" => 0
];
$result = [
"dt" => [
"bh" => [$item, $winitem]
],
"err" => null
];
return $result;
}
public function GameWallet(Request $request)
{
// Extracted constant for repeated value
$user = json_decode(Redis::get($request->atk));
// if(!$user)return ['dt'=>null,'err'=>'session expired'];
if (!$user||!isset($user->UserID)) return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
$score = GlobalUserInfo::getScoreByUserID($user->UserID);
// Original data with more descriptive keys and organized structure
// $jsonData = [
// "details" => [
// "currency" => "BRL",
// "totalBalance" => $score,
// "pendingBalance" => 0.00,
// "currentBalance" => $score,
// "totalBetBalance" => 0.00,
// "totalFreeGameBalance" => 0.00,
// "remainingFreeGamesCount" => 0,
// "isBonusEnabled" => false,
// "isFreeGameEnabled" => false,
// "isExclusiveBonusEnabled" => false,
// "isExclusiveFreeGameEnabled" => false,
// "child" => [
// "key" => "0_C",
// "childId" => 0,
// "childBalance" => $score
// ],
// "promotion" => null,
// "ocr" => null
// ],
// "error" => null
// ];
$Currency = env("CONFIG_24680_CURRENCY", "BRL");
$CurrencySymbol = env("CONFIG_24680_DOLLAR", "R$");
$json = [
"dt" => [
"cc" => $Currency,
"tb" => $score,
"pb" => 0,
"cb" => $score,
"tbb" => 0,
"tfgb" => 0,
"rfgc" => 0,
"inbe" => false,
"infge" => false,
"iebe" => false,
"iefge" => false,
"ch" => [
"k" => "0_C",
"cid" => 0,
"cb" => $score
],
"p" => null,
"ocr" => null
],
"err" => null
];
// Usage example
return $json;
}
public function GameRule(Request $request)
{
$this->log($request);
return '{"dt":{"rtp":{"Default":{"min":96.75,"max":96.75}},"ows":{"itare":true,"tart":1,"igare":true,"gart":2160},"jws":null},"err":null}';
}
public function GameName(Request $request)
{
$this->log($request);
///lang: zh
//btt: 1
//atk: K8ZU75Z5-TC66-8163-6Q4W-7XFBU6NIWTQE
//pf: 4
//gid: 1543462
$token = $request->atk;
$gameid = $request->gid ?? "57";
$lang = $request->lang ?? "en";
$gamenames = json_decode($this->gamenames, true);
$supportLang = array_keys($gamenames);//['en','da','de','es','fi','fr','id','it','ja','ko','nl','no','pl','pt','ro','ru','sv','th','tr','vi','zh','my'];
if (!in_array($lang, $supportLang)) $lang = 'en';
return response()->json($gamenames[$lang])->setEncodingOptions(JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
// return json_encode($gamenames[$lang],JSON_UNESCAPED_UNICODE);
}
public function verifyOperatorPlayerSession(Request $request)
{
$this->log($request);
///btt: 1
//vc: 2
//pf: 4
//l: zh
//gi: 1543462
//os: 917c74999c-b53b-eb1a-0004478930
//otk: I-226f37ece4604f19a926c0cd709a995c
return $this->VerifySession($request);
return [
"dt" => null,
"err" => [
"cd" => "1308",
"msg" => "Player session is expired",
"tid" => $request->traceId
]
];
}
public function GetByReferenceIdsResourceTypeIds(Request $request)
{
return [
"dt" => [
"0" => [
"rid" => 0,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/default-e16a5d2e.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"1" => [
"rid" => 2,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m2-de4b8bd8.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"2" => [
"rid" => 3,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m3-d31d9b62.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"3" => [
"rid" => 4,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m4-a6308645.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"4" => [
"rid" => 5,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m5-8eab7ae3.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"5" => [
"rid" => 6,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m6-19e7aa37.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"6" => [
"rid" => 7,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m7-8e038206.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"7" => [
"rid" => 8,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m8-711d3975.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"8" => [
"rid" => 9,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m9-21680422.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"9" => [
"rid" => 10,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m10-51eb1a26.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"10" => [
"rid" => 11,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m11-69f2941d.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"11" => [
"rid" => 12,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/m12-db14d865.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"12" => [
"rid" => 13,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f1-3818e131.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"13" => [
"rid" => 14,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f2-057a3e40.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"14" => [
"rid" => 15,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f3-642d52dc.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"15" => [
"rid" => 16,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f4-f3fc5462.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"16" => [
"rid" => 17,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f5-06141292.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"17" => [
"rid" => 18,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f6-1c66ed0b.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"18" => [
"rid" => 19,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f7-1147f29a.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"19" => [
"rid" => 21,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f9-f835d8e6.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"20" => [
"rid" => 22,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f10-54c3b4a4.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"21" => [
"rid" => 23,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f11-9f9a1767.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
],
"22" => [
"rid" => 24,
"rtid" => 13,
"url" => "https://public.pg-demo.com/pages/static/image/en/SocialProfile/f12-5d493e91.png",
"l" => "en-US",
"ut" => "2019-09-27T10:57:09"
]
],
"err" => null
];
}
public function GameUI(Request $request)
{
return '{"dt":[{"gid":1,"glu":"1/index.html","ut":"2019-07-22T04:30:28"},{"gid":3,"glu":"3/index.html","ut":"2019-07-22T04:30:28"},{"gid":6,"glu":"6/index.html","ut":"2019-07-22T04:30:28"},{"gid":24,"glu":"24/index.html","ut":"2019-07-22T04:30:28"},{"gid":26,"glu":"26/index.html","ut":"2019-07-22T04:30:28"},{"gid":7,"glu":"7/index.html","ut":"2019-07-22T04:30:28"},{"gid":2,"glu":"2/index.html","ut":"2019-07-22T04:30:28"},{"gid":25,"glu":"25/index.html","ut":"2019-07-22T04:30:28"},{"gid":18,"glu":"18/index.html","ut":"2019-07-22T04:30:28"},{"gid":29,"glu":"29/index.html","ut":"2019-07-22T04:30:28"},{"gid":28,"glu":"28/index.html","ut":"2019-07-22T04:30:28"},{"gid":35,"glu":"35/index.html","ut":"2019-07-22T04:30:28"},{"gid":34,"glu":"34/index.html","ut":"2019-07-22T04:30:28"},{"gid":36,"glu":"36/index.html","ut":"2019-07-22T04:30:28"},{"gid":33,"glu":"33/index.html","ut":"2019-07-22T04:30:28"},{"gid":37,"glu":"37/index.html","ut":"2019-07-22T04:30:28"},{"gid":31,"glu":"31/index.html","ut":"2019-07-22T04:30:28"},{"gid":38,"glu":"38/index.html","ut":"2019-07-22T04:30:28"},{"gid":39,"glu":"39/index.html","ut":"2019-07-22T04:30:28"},{"gid":41,"glu":"41/index.html","ut":"2019-07-22T04:30:28"},{"gid":44,"glu":"44/index.html","ut":"2019-07-22T04:30:28"},{"gid":42,"glu":"42/index.html","ut":"2019-07-22T04:30:28"},{"gid":48,"glu":"48/index.html","ut":"2019-07-22T04:30:28"},{"gid":40,"glu":"40/index.html","ut":"2019-07-22T04:30:28"},{"gid":50,"glu":"50/index.html","ut":"2019-07-22T04:30:28"},{"gid":53,"glu":"53/index.html","ut":"2019-07-22T04:30:28"},{"gid":54,"glu":"54/index.html","ut":"2019-07-22T04:30:28"},{"gid":59,"glu":"59/index.html","ut":"2019-08-09T08:27:42"},{"gid":60,"glu":"60/index.html","ut":"2019-08-16T07:12:58"},{"gid":61,"glu":"61/index.html","ut":"2019-09-04T06:48:21"},{"gid":62,"glu":"62/index.html","ut":"2019-09-30T06:52:02"},{"gid":64,"glu":"64/index.html","ut":"2019-10-02T09:43:02"},{"gid":63,"glu":"63/index.html","ut":"2019-10-29T09:31:42"},{"gid":65,"glu":"65/index.html","ut":"2019-11-14T07:26:42"},{"gid":20,"glu":"20/index.html","ut":"2019-11-22T04:41:44"},{"gid":57,"glu":"57/index.html","ut":"2019-12-19T03:00:40"},{"gid":68,"glu":"68/index.html","ut":"2020-01-10T07:31:39"},{"gid":67,"glu":"67/index.html","ut":"2020-02-19T11:25:10"},{"gid":71,"glu":"71/index.html","ut":"2020-02-25T10:08:52"},{"gid":70,"glu":"70/index.html","ut":"2020-02-25T10:19:19"},{"gid":69,"glu":"69/index.html","ut":"2020-03-27T10:23:04"},{"gid":74,"glu":"74/index.html","ut":"2020-04-01T08:50:13"},{"gid":73,"glu":"73/index.html","ut":"2020-04-14T07:21:51"},{"gid":75,"glu":"75/index.html","ut":"2020-04-16T10:01:34"},{"gid":82,"glu":"82/index.html","ut":"2020-05-28T06:07:32"},{"gid":79,"glu":"79/index.html","ut":"2020-06-05T02:25:49"},{"gid":83,"glu":"83/index.html","ut":"2020-06-17T03:03:20"},{"gid":85,"glu":"85/index.html","ut":"2020-07-09T07:25:06"},{"gid":80,"glu":"80/index.html","ut":"2020-07-14T03:26:18"},{"gid":84,"glu":"84/index.html","ut":"2020-07-22T04:19:56"},{"gid":86,"glu":"86/index.html","ut":"2020-07-30T02:11:45"},{"gid":87,"glu":"87/index.html","ut":"2020-08-12T06:10:33"},{"gid":58,"glu":"58/index.html","ut":"2020-08-21T03:00:33"},{"gid":92,"glu":"92/index.html","ut":"2020-09-02T02:56:02"},{"gid":90,"glu":"90/index.html","ut":"2020-09-09T05:50:19"},{"gid":88,"glu":"88/index.html","ut":"2020-09-24T04:26:13"},{"gid":93,"glu":"93/index.html","ut":"2020-10-01T08:54:07"},{"gid":89,"glu":"89/index.html","ut":"2020-10-15T09:44:10"},{"gid":94,"glu":"94/index.html","ut":"2020-10-22T10:56:48"},{"gid":91,"glu":"91/index.html","ut":"2020-11-17T07:38:25"},{"gid":97,"glu":"97/index.html","ut":"2020-11-24T06:44:42"},{"gid":100,"glu":"100/index.html","ut":"2020-12-24T03:16:15"},{"gid":98,"glu":"98/index.html","ut":"2020-12-29T09:11:08"},{"gid":103,"glu":"103/index.html","ut":"2020-12-29T09:31:26"},{"gid":101,"glu":"101/index.html","ut":"2021-01-26T13:46:34"},{"gid":95,"glu":"95/index.html","ut":"2021-01-28T04:52:19"},{"gid":104,"glu":"104/index.html","ut":"2021-02-09T08:27:30"},{"gid":105,"glu":"105/index.html","ut":"2021-03-04T09:00:11"},{"gid":106,"glu":"106/index.html","ut":"2021-03-12T02:01:11"},{"gid":102,"glu":"102/index.html","ut":"2021-03-23T03:46:01"},{"gid":110,"glu":"110/index.html","ut":"2021-05-07T07:14:31"},{"gid":108,"glu":"108/index.html","ut":"2021-06-10T10:32:58"},{"gid":113,"glu":"113/index.html","ut":"2021-06-18T08:29:04"},{"gid":115,"glu":"115/index.html","ut":"2021-07-21T09:05:59"},{"gid":107,"glu":"107/index.html","ut":"2021-08-12T07:41:38"},{"gid":114,"glu":"114/index.html","ut":"2021-08-12T09:51:54"},{"gid":119,"glu":"119/index.html","ut":"2021-09-15T10:26:26"},{"gid":112,"glu":"112/index.html","ut":"2021-09-23T10:59:59"},{"gid":117,"glu":"117/index.html","ut":"2021-10-05T04:06:38"},{"gid":120,"glu":"120/index.html","ut":"2021-10-07T09:39:19"},{"gid":118,"glu":"118/index.html","ut":"2021-10-07T09:54:59"},{"gid":121,"glu":"121/index.html","ut":"2021-11-24T07:22:23"},{"gid":122,"glu":"122/index.html","ut":"2021-12-01T07:36:23"},{"gid":126,"glu":"126/index.html","ut":"2021-12-02T07:58:46"},{"gid":130,"glu":"130/index.html","ut":"2022-02-22T09:23:11"},{"gid":124,"glu":"124/index.html","ut":"2022-03-02T08:04:54"},{"gid":123,"glu":"123/index.html","ut":"2022-03-02T08:05:12"},{"gid":125,"glu":"125/index.html","ut":"2022-03-02T08:05:46"},{"gid":129,"glu":"129/index.html","ut":"2022-03-10T08:18:06"},{"gid":128,"glu":"128/index.html","ut":"2022-03-16T09:59:05"},{"gid":1312883,"glu":"1312883/index.html","ut":"2022-04-26T01:58:01"},{"gid":132,"glu":"132/index.html","ut":"2022-05-10T08:49:52"},{"gid":135,"glu":"135/index.html","ut":"2022-05-25T09:30:11"},{"gid":127,"glu":"127/index.html","ut":"2022-05-30T04:30:30"},{"gid":1338274,"glu":"1338274/index.html","ut":"2022-06-02T12:10:58"},{"gid":1340277,"glu":"1340277/index.html","ut":"2022-06-10T08:02:41"},{"gid":1368367,"glu":"1368367/index.html","ut":"2022-07-13T07:27:28"},{"gid":1372643,"glu":"1372643/index.html","ut":"2022-07-28T09:50:49"},{"gid":1418544,"glu":"1418544/index.html","ut":"2022-08-10T09:12:09"},{"gid":1402846,"glu":"1402846/index.html","ut":"2022-12-16T04:18:30"},{"gid":1543462,"glu":"1543462/index.html","ut":"2023-01-06T02:35:07"},{"gid":1420892,"glu":"1420892/index.html","ut":"2023-02-10T06:31:52"},{"gid":1381200,"glu":"1381200/index.html","ut":"2023-02-21T09:08:34"},{"gid":1448762,"glu":"1448762/index.html","ut":"2023-03-30T02:10:17"},{"gid":1432733,"glu":"1432733/index.html","ut":"2023-04-17T10:24:15"},{"gid":1513328,"glu":"1513328/index.html","ut":"2023-05-15T08:27:28"},{"gid":1601012,"glu":"1601012/index.html","ut":"2023-06-06T08:46:34"},{"gid":1397455,"glu":"1397455/index.html","ut":"2023-07-04T10:31:00"},{"gid":1473388,"glu":"1473388/index.html","ut":"2023-08-04T06:31:57"},{"gid":1594259,"glu":"1594259/index.html","ut":"2023-08-22T07:25:47"},{"gid":1572362,"glu":"1572362/index.html","ut":"2023-09-13T11:52:43"},{"gid":1489936,"glu":"1489936/index.html","ut":"2023-09-26T08:49:05"},{"gid":1529867,"glu":"1529867/index.html","ut":"2023-09-26T08:49:49"},{"gid":1568554,"glu":"1568554/index.html","ut":"2023-10-25T04:36:47"},{"gid":1555350,"glu":"1555350/index.html","ut":"2023-11-08T06:15:08"},{"gid":1580541,"glu":"1580541/index.html","ut":"2023-11-30T08:42:36"},{"gid":1655268,"glu":"1655268/index.html","ut":"2023-12-08T05:13:16"},{"gid":1615454,"glu":"1615454/index.html","ut":"2023-12-19T02:55:00"},{"gid":1451122,"glu":"1451122/index.html","ut":"2024-01-03T03:34:12"},{"gid":1695365,"glu":"1695365/index.html","ut":"2024-01-17T09:25:48"},{"gid":1671262,"glu":"1671262/index.html","ut":"2024-02-22T09:45:27"},{"gid":1682240,"glu":"1682240/index.html","ut":"2024-03-04T08:17:28"},{"gid":1508783,"glu":"1508783/index.html","ut":"2024-03-21T04:05:17"},{"gid":1492288,"glu":"1492288/index.html","ut":"2024-04-02T09:29:58"},{"gid":1717688,"glu":"1717688/index.html","ut":"2024-04-19T09:10:07"},{"gid":1623475,"glu":"1623475/index.html","ut":"2024-05-08T07:42:01"},{"gid":1635221,"glu":"1635221/index.html","ut":"2024-05-30T14:56:05"},{"gid":1738001,"glu":"1738001/index.html","ut":"2024-06-14T06:12:08"},{"gid":1778752,"glu":"1778752/index.html","ut":"2024-06-26T09:11:03"},{"gid":1648578,"glu":"1648578/index.html","ut":"2024-07-11T08:29:21"},{"gid":1760238,"glu":"1760238/index.html","ut":"2024-07-25T07:55:54"},{"gid":1747549,"glu":"1747549/index.html","ut":"2024-08-14T07:21:59"}],"err":null}';
}
public function TournamentExistance(Request $request)
{
return ['dt' => null, 'err' => null];
}
public function InitLite(Request $request)
{
return ['dt' => null, 'err' => null];
}
public function SocialInitConfig(Request $request)
{
return [
"dt" => [
"countries" => null,
"achievements" => null,
"levelActionPermissions" => null,
"gameChatEmoticonTemplateDatas" => null,
"gameSpecificThresholdId" => null,
"configurationSetting" => null,
"onlinePlayerCounts" => null,
"playerFavouriteGamesDatas" => null,
"playerProfileInfo" => null,
"levelBackground" => null,
"onlinePlayerCount" => null
],
"err" => null
];
}
public function VerifySession(Request $request)
{
$this->log($request);
// btt: 1
//vc: 2
//pf: 4
//l: zh
//gi: 1543462
//tk: 20bb7d43-1ace-43d8-84f5-afa15981b653
//otk: Zm9saWFiZXQ=
//区域跳转
try {
$arr = explode('|', Crypt::decryptString($request->otk));
$GlobalUID = $arr[0];
if (!ServerService::IsLocalUser($GlobalUID)) {
return ServerService::RedirectToSub($GlobalUID);
}
$timestamp = intval($arr[1]);
if (time() > $timestamp) return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
// $user = GlobalUserInfo::getGameUserInfo('GlobalUID', $GlobalUID);
} catch (\Exception $e) {
if(isset($request->otk)) {
TelegramBot::getDefault()->sendMsgWithEnv("redirect fail:" . json_encode($request->all()) . $e->getMessage() . $e->getTraceAsString());
$this->log($request, "wrong user");
}
return "";
}
if(!isset($GlobalUID)||empty($GlobalUID)){
return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
}
//不是本地构造的
// if(!strstr($GlobalUID,'a1b1c1')) {
// if (!isset($user) || !$user) return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
// $data = $user->toArray();
// }else{
$data=['UserID'=>ServerService::GlobalToUserID($GlobalUID)];
// }
// $GlobalUID=$request->tk;
$gameid = $request->gi ?? "57";
$lang = $request->l ?? "en";
$Currency = env("CONFIG_24680_CURRENCY", "BRL");
$CurrencySymbol = env("CONFIG_24680_DOLLAR", "R$");
// $GlobalUID = $user->GlobalUID;
$PgPlayerID = md5($GlobalUID);
$newToken = base64_encode(random_bytes(20));
$data['currency'] = $Currency;
$data['dollar'] = $CurrencySymbol;
$roomlevel=$request->btt??1;
$data['limit_room']=0;
if($roomlevel>1){
$data['limit_room']=1;
}
$account = AccountsInfo::where('UserID', $data['UserID'])->first();
if(!$account){
TelegramBot::getDefault()->sendMsgWithEnv("VerifySession fail:" . json_encode([$request->all(),$data]) );
return ['dt' => null, 'err' => ['cd' => 1302, 'msg' => 'Invalid player session', 'tid' => $request->traceId]];
}else{
$account=$account->toArray();
}
$data = array_merge($data, $account);
Redis::setex($newToken, 7200, json_encode($data));
// Redis::set($newToken,json_encode($data));
$sessions = json_decode($this->sessions, true);
$config = ServerService::GetGlobalServerInfoByGUID($GlobalUID);
$api = [
'Bangladesh'=> "bdapi.pgn-nmu2nd.com",
'Pakistan' => "pkapi.pgn-nmu2nd.com",
'OrgBrazil' => "orgbr.pgn-nmu2nd.com",
'Brazil' => "brapi.pgn-nmu2nd.com",
'Europe' => "euapi.pgn-nmu2nd.com",
'Russia' => "ruapi.pgn-nmu2nd.com",
'Mexico' => "mxapi.pgn-nmu2nd.com",
'Singapore' => "sgapi.pgn-nmu2nd.com",
'Latin' => "saapi.pgn-nmu2nd.com",
][$config['Subsite']];
if(isset($sessions[$gameid])) {
$obj = $sessions[$gameid];
$obj['dt']['lm'] = $data['limit_room'];
$obj['dt']['pid'] = $PgPlayerID;
$obj['dt']['pcd'] = $GlobalUID;
$obj['dt']['nkn'] = $GlobalUID;
$obj['dt']['tk'] = $newToken;
$obj['dt']['cc'] = $Currency;
$obj['dt']['cs'] = $CurrencySymbol;
$obj['dt']['geu'] = "https://$api/game-api/$gameid/";
$obj['dt']['lau'] = "https://$api";
$obj['dt']['bau'] = "https://$api/web-api/game-proxy/";
$obj['dt']['eatk'] = $newToken;
$obj['dt']['ec'] = [
// [
// "n" => "132bb011e7",
// "v" => "10",
// "il" => 0,
// "om" => 0,
// "uie" => [
// "ct" => "1"
// ]
// ],
// [
// "n" => "5e3d8c75c3",
// "v" => "6",
// "il" => 0,
// "om" => 0,
// "uie" => [
// "ct" => "1"
// ]
// ]
];
// $obj['dt']['uiogc']['gsc']=1;
// $obj['dt']['uiogc']['grt']=0;
// $obj['dt']['uiogc']['swf']=1;
// $obj['dt']['uiogc']['swfbsi']=1;
// $obj['dt']['uiogc']['swfbli']=1;
$obj['dt']['sdn'] = 'api';
$obj['dt']['jc'] = [
"bf" => 1,
"et" => 0,
"np" => 0,
"as" => 100,
"asc" => 2,
"std" => 0,
"hnp" => 0,
"ts" => 1,
"smpo" => 0,
"swf" => 0,
"sp" => 0,
"rcf" => 0,
"sbb" => 0,
"hwl" => 0
];
$obj['dt']['tt'] = [env('REGION_24680'), env('APP_URL')];
$obj['dt']['ioph'] = '00000';
return response()->json($obj)->setEncodingOptions(JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
}
$jayParsedAry = [
"dt" => [
"oj" => [
"jid" => 0
],
"pid" => $PgPlayerID,
"pcd" => $GlobalUID,
"nkn" => $GlobalUID,
"tk" => $newToken,
"st" => 1,
"geu" => "https://api.pgn-nmu2nd.com/game-api/$gameid/",
"lau" => "https://api.pgn-nmu2nd.com",
"bau" => "https://api.pgn-nmu2nd.com/web-api/game-proxy/",
"cc" => $Currency,
"cs" => $CurrencySymbol,
"gm" => [
[
"gid" => intval($gameid),
"msdt" => 1672972799000,
"medt" => 1672972799000,
"st" => 1,
"amsg" => "",
"rtp" => [
"df" => [
"min" => 96.81,
"max" => 96.81
]
],
"mxe" => 2500,
"mxehr" => 1000000000
]
],
"uiogc" => [
"bb" => 1,
"grtp" => 1,
"gec" => 1,
"cbu" => 0,
"cl" => 0,
"bf" => 1,
"mr" => 0,
"phtr" => 0,
"vc" => 0,
"bfbsi" => 1,
"bfbli" => 1,
"il" => 0,
"rp" => 0,
"gc" => 1,
"ign" => 1,
"tsn" => 0,
"we" => 0,
"gsc" => 1,
"bu" => 0,
"pwr" => 0,
"hd" => 0,
"et" => 0,
"np" => 0,
"igv" => 0,
"as" => 0,
"asc" => 0,
"std" => 0,
"hnp" => 0,
"ts" => 0,
"smpo" => 0,
"ivs" => 1,
"ir" => 0,
"gvs" => 0,
"hn" => 1,
"swf" => 1,
"swfbsi" => 1,
"swfbli" => 1,
],
"ec" => [
[
"n" => "132bb011e7",
"v" => "10",
"il" => 0,
"om" => 0,
"uie" => [
"ct" => "1"
]
], [
"n" => "5e3d8c75c3",
"v" => "6",
"il" => 0,
"om" => 0,
"uie" => [
"ct" => "1"
]
]
],
"occ" => [
"rurl" => "",
"tcm" => "",
"tsc" => 10,
"ttp" => 10,
"tlb" => "",
"trb" => ""
],
"ioph" => '00000',//$ioph[$gameid] ?? "6028539ddfc8",
"sdn" => 'api',
"eatk" => $newToken,
],
"err" => null
];
return json_encode($jayParsedAry, JSON_UNESCAPED_UNICODE);
}
public function cashUpdateBetDetail()
{
return response()->json(['data' => ['is_success' => 1], 'error' => null]);
}
private $gameList = [
'1' => 'diaochan',
'2' => 'gem-saviour',
'3' => 'fortune-gods',
'6' => 'medusa2',
'7' => 'medusa',
'18' => 'hood-wolf',
'20' => 'reel-love',
'24' => 'win-win-won',
'25' => 'plushie-frenzy',
'26' => 'fortune-tree',
'28' => 'hotpot',
'29' => 'dragon-legend',
'31' => 'baccarat-deluxe',
'33' => 'hip-hop-panda',
'34' => 'legend-of-hou-yi',
'35' => 'mr-hallow-win',
'36' => 'prosperity-lion',
'37' => 'santas-gift-rush',
'38' => 'gem-saviour-sword',
'39' => 'piggy-gold',
'40' => 'jungle-delight',
'41' => 'symbols-of-egypt',
'42' => 'ganesha-gold',
'44' => 'emperors-favour',
'48' => 'double-fortune',
'50' => 'journey-to-the-wealth',
'53' => 'the-great-icescape',
'54' => 'captains-bounty',
'57' => 'dragon-hatch',
'58' => 'vampires-charm',
'59' => 'ninja-vs-samurai',
'60' => 'leprechaun-riches',
'61' => 'flirting-scholar',
'62' => 'gem-saviour-conquest',
'63' => 'dragon-tiger-luck',
'64' => 'muay-thai-champion',
'65' => 'mahjong-ways',
'67' => 'shaolin-soccer',
'68' => 'fortune-mouse',
'69' => 'bikini-paradise',
'70' => 'candy-burst',
'71' => 'cai-shen-wins',
'73' => 'egypts-book-mystery',
'74' => 'mahjong-ways2',
'75' => 'ganesha-fortune',
'79' => 'dreams-of-macau',
'80' => 'circus-delight',
'82' => 'phoenix-rises',
'83' => 'wild-fireworks',
'84' => 'queen-bounty',
'85' => 'genies-wishes',
'86' => 'galactic-gems',
'87' => 'treasures-aztec',
'88' => 'jewels-prosper',
'89' => 'lucky-neko',
'90' => 'sct-cleopatra',
'91' => 'gdn-ice-fire',
'92' => 'thai-river',
'93' => 'opera-dynasty',
'94' => 'bali-vacation',
'95' => 'majestic-ts',
'97' => 'jack-frosts',
'98' => 'fortune-ox',
'100' => 'candy-bonanza',
'101' => 'rise-of-apollo',
'102' => 'mermaid-riches',
'103' => 'crypto-gold',
'104' => 'wild-bandito',
'105' => 'heist-stakes',
'106' => 'ways-of-qilin',
'107' => 'lgd-monkey-kg',
'108' => 'buffalo-win',
'110' => 'jurassic-kdm',
'112' => 'oriental-pros',
'113' => 'crypt-fortune',
'114' => 'emoji-riches',
'115' => 'sprmkt-spree',
'117' => 'cocktail-nite',
'118' => 'mask-carnival',
'119' => 'spirit-wonder',
'120' => 'queen-banquet',
'121' => 'dest-sun-moon',
'122' => 'garuda-gems',
'123' => 'rooster-rbl',
'124' => 'battleground',
'125' => 'btrfly-blossom',
'126' => 'fortune-tiger',
'127' => 'speed-winner',
'128' => 'legend-perseus',
'129' => 'win-win-fpc',
'130' => 'lucky-piggy',
'132' => 'wild-coaster',
'135' => 'wild-bounty-sd',
'1312883' => 'prosper-ftree',
'1338274' => 'totem-wonders',
'1340277' => 'asgardian-rs',
'1368367' => 'alchemy-gold',
'1372643' => 'diner-delights',
'1381200' => 'hawaiian-tiki',
'1397455' => 'fruity-candy',
'1402846' => 'midas-fortune',
'1418544' => 'bakery-bonanza',
'1420892' => 'rave-party-fvr',
'1432733' => 'myst-spirits',
'1448762' => 'songkran-spl',
'1451122' => 'dragon-hatch2',
'1473388' => 'cruise-royale',
'1489936' => 'ult-striker',
'1492288' => 'pinata-wins',
'1508783' => 'wild-ape-3258',
'1513328' => 'spr-golf-drive',
'1529867' => 'ninja-raccoon',
'1543462' => 'fortune-rabbit',
'1555350' => 'forge-wealth',
'1568554' => 'wild-heist-co',
'1572362' => 'gladi-glory',
'1580541' => 'mafia-mayhem',
'1594259' => 'safari-wilds',
'1601012' => 'lucky-clover',
'1623475' => 'anubis-wrath',
'1635221' => 'zombie-outbrk',
'1648578' => 'shark-hunter',
'1671262' => 'gemstones-gold',
'1682240' => 'cash-mania',
'1717688' => 'mystic-potions',
'1738001' => 'chicky-run',
'1760238' => 'yakuza-honor',
'1778752' => 'futebol-fever'
];
}