diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 9bdb472..98b8d3c 100644 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -105,6 +105,9 @@ class Index extends Frontend } $xyxServices = new XyxServices($player); $res = $xyxServices->login(['gameCode' => $gameId]); - $this->success('success',[$res]); + if ($res) { + return redirect($res); + } + $this->error('error'); } } \ No newline at end of file diff --git a/config/mini_game.php b/config/mini_game.php index 8b42ebf..b5ab1b6 100644 --- a/config/mini_game.php +++ b/config/mini_game.php @@ -1,8 +1,7 @@ 'Lucky Wheel', - 1002 => 'Golden Eggs', - 1003 => 'Daily Mission', - 1004 => 'Plinko Ball', + 268 => 'plinko_ball', + 269 => 'smash_eggs', + 270 => 'spin_wheel', ];