diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index d14b1daf6..6252624f0 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -1188,6 +1188,9 @@ class DownloadController extends BaseController { $gameMap['sdk_version'] = $sdkVersion; } $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); + if(empty($gameId1)) { + $gameId1 = [100000000]; + } $map['game_id'] = ['in', $gameId1]; } empty(I('server_id')) || $map['tab_pay_info.server_id'] = I('server_id'); diff --git a/Application/Home/Controller/PlayersController.class.php b/Application/Home/Controller/PlayersController.class.php index c016444fb..2162efa41 100644 --- a/Application/Home/Controller/PlayersController.class.php +++ b/Application/Home/Controller/PlayersController.class.php @@ -42,6 +42,9 @@ class PlayersController extends BaseController { $gameMap['sdk_version'] = $sdkVersion; } $gameId = M('game', 'tab_')->where($gameMap)->getField('id', true); + if(empty($gameId)) { + $gameId = [100000]; + } $map['game_id'] = ['in', $gameId]; } if (!empty($serverId)) {