From 50382918767f1043a998ee79b5e3ef027e41ed2a Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Mon, 16 Dec 2019 20:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E9=98=B2=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/DownloadController.class.php | 3 +++ Application/Home/Controller/PlayersController.class.php | 3 +++ 2 files changed, 6 insertions(+) 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)) {