|
|
@ -1678,16 +1678,8 @@ class QueryController extends BaseController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
if ($relationGameId != 0) {
|
|
|
|
$gameIds = gameSearch($relationGameId, $sdkVersion);
|
|
|
|
$gameMap['relation_game_id'] = $relationGameId;
|
|
|
|
$map['game_id'] = ['in', $gameIds];
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($sdkVersion != 0) {
|
|
|
|
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
$gameId = $gameId ?? [-1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$map['game_id'] = ['in', $gameId];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($serverId != 0) {
|
|
|
|
if ($serverId != 0) {
|
|
|
|
$map['server_id'] = $serverId;
|
|
|
|
$map['server_id'] = $serverId;
|
|
|
@ -1793,17 +1785,9 @@ class QueryController extends BaseController
|
|
|
|
$subMap = ['promote_id' => ['in', $ids]];
|
|
|
|
$subMap = ['promote_id' => ['in', $ids]];
|
|
|
|
|
|
|
|
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
if ($relationGameId != 0) {
|
|
|
|
$gameIds = gameSearch($relationGameId, $sdkVersion);
|
|
|
|
$gameMap['relation_game_id'] = $relationGameId;
|
|
|
|
$map['uc.game_id'] = ['in', $gameIds];
|
|
|
|
}
|
|
|
|
$subMap['game_id'] = ['in', $gameIds];
|
|
|
|
if ($sdkVersion != 0) {
|
|
|
|
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
$gameId = $gameId ?? [-1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$map['uc.game_id'] = ['in', $gameId];
|
|
|
|
|
|
|
|
$subMap['game_id'] = ['in', $gameId];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($serverId != 0) {
|
|
|
|
if ($serverId != 0) {
|
|
|
|
$map['uc.server_id'] = $serverId;
|
|
|
|
$map['uc.server_id'] = $serverId;
|
|
|
@ -2081,16 +2065,8 @@ class QueryController extends BaseController
|
|
|
|
'basicPromotes' => $basicPromotes,
|
|
|
|
'basicPromotes' => $basicPromotes,
|
|
|
|
];
|
|
|
|
];
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
if ($relationGameId != 0) {
|
|
|
|
$gameIds = gameSearch($relationGameId, $sdkVersion);
|
|
|
|
$gameMap['relation_game_id'] = $relationGameId;
|
|
|
|
$params['game_id'] = ['in', $gameIds];
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($sdkVersion != 0) {
|
|
|
|
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
$gameId = $gameId ?? [-1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$params['game_id'] = ['in', $gameId];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($serverId > 0) {
|
|
|
|
if ($serverId > 0) {
|
|
|
|
$params['server_id'] = $serverId;
|
|
|
|
$params['server_id'] = $serverId;
|
|
|
|