关联防错

master
sunke 5 years ago
parent 47bad41bfa
commit 5038291876

@ -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');

@ -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)) {

Loading…
Cancel
Save