From fee36cb7ffe2087bfdfca259162d61fe9bb9bab1 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Mon, 16 Dec 2019 20:50:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/DownloadController.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 6252624f0..012598ebe 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -1189,7 +1189,7 @@ class DownloadController extends BaseController { } $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); if(empty($gameId1)) { - $gameId1 = [100000000]; + $gameId1 = [-100]; } $map['game_id'] = ['in', $gameId1]; } @@ -1385,6 +1385,9 @@ class DownloadController extends BaseController { $gameMap['sdk_version'] = $sdkVersion; } $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); + if(empty($gameId1)) { + $gameId1 = [-100]; + } $map['game_id'] = ['in', $gameId1]; $subMap['game_id'] = ['in', $gameId1]; } @@ -1507,6 +1510,9 @@ class DownloadController extends BaseController { $gameMap['sdk_version'] = $sdkVersion; } $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); + if(empty($gameId1)) { + $gameId1 = [-100]; + } $map['game_id'] = ['in', $gameId1]; } if ($serverId > 0) { @@ -1606,6 +1612,9 @@ class DownloadController extends BaseController { $gameMap['sdk_version'] = $sdkVersion; } $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); + if(empty($gameId1)) { + $gameId1 = [-100]; + } $map['game_id'] = ['in', $gameId1]; } if ($serverId != 0) {