master
sunke 5 years ago
parent 8a8a193248
commit fee36cb7ff

@ -1189,7 +1189,7 @@ class DownloadController extends BaseController {
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) { if(empty($gameId1)) {
$gameId1 = [100000000]; $gameId1 = [-100];
} }
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
@ -1385,6 +1385,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
$subMap['game_id'] = ['in', $gameId1]; $subMap['game_id'] = ['in', $gameId1];
} }
@ -1507,6 +1510,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
if ($serverId > 0) { if ($serverId > 0) {
@ -1606,6 +1612,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
if ($serverId != 0) { if ($serverId != 0) {

Loading…
Cancel
Save