|
|
|
@ -1678,14 +1678,8 @@ class QueryController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
|
if ($relationGameId != 0) {
|
|
|
|
|
$gameMap['relation_game_id'] = $relationGameId;
|
|
|
|
|
}
|
|
|
|
|
if ($sdkVersion != 0) {
|
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
|
}
|
|
|
|
|
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
$map['game_id'] = ['in', $gameId];
|
|
|
|
|
$gameIds = gameSearch($relationGameId, $sdkVersion);
|
|
|
|
|
$map['game_id'] = ['in', $gameIds];
|
|
|
|
|
}
|
|
|
|
|
if ($serverId != 0) {
|
|
|
|
|
$map['server_id'] = $serverId;
|
|
|
|
@ -1791,16 +1785,9 @@ class QueryController extends BaseController
|
|
|
|
|
$subMap = ['promote_id' => ['in', $ids]];
|
|
|
|
|
|
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
|
if ($relationGameId != 0) {
|
|
|
|
|
$gameMap['relation_game_id'] = $relationGameId;
|
|
|
|
|
}
|
|
|
|
|
if ($sdkVersion != 0) {
|
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
|
}
|
|
|
|
|
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
|
|
|
|
|
$map['uc.game_id'] = ['in', $gameId];
|
|
|
|
|
$subMap['game_id'] = ['in', $gameId];
|
|
|
|
|
$gameIds = gameSearch($relationGameId, $sdkVersion);
|
|
|
|
|
$map['uc.game_id'] = ['in', $gameIds];
|
|
|
|
|
$subMap['game_id'] = ['in', $gameIds];
|
|
|
|
|
}
|
|
|
|
|
if ($serverId != 0) {
|
|
|
|
|
$map['uc.server_id'] = $serverId;
|
|
|
|
@ -1894,7 +1881,6 @@ class QueryController extends BaseController
|
|
|
|
|
foreach ($records as &$list) {
|
|
|
|
|
if (empty($list['user_account']) ) {
|
|
|
|
|
$list['user_account'] = M('user', 'tab_')->where("id = {$list['user_id']}")->getField('account');
|
|
|
|
|
$list['user_account'] = empty($list['user_account']) ? '--' : encryption($list['user_account']);
|
|
|
|
|
}
|
|
|
|
|
$list['user_account'] = empty($list['user_account']) ? '--' : encryption($list['user_account']);
|
|
|
|
|
$list['game_name'] = empty($list['game_name']) ? '--' : $list['game_name'];
|
|
|
|
@ -2079,14 +2065,8 @@ class QueryController extends BaseController
|
|
|
|
|
'basicPromotes' => $basicPromotes,
|
|
|
|
|
];
|
|
|
|
|
if ($relationGameId != 0 || $sdkVersion != 0) {
|
|
|
|
|
if ($relationGameId != 0) {
|
|
|
|
|
$gameMap['relation_game_id'] = $relationGameId;
|
|
|
|
|
}
|
|
|
|
|
if ($sdkVersion != 0) {
|
|
|
|
|
$gameMap['sdk_version'] = $sdkVersion;
|
|
|
|
|
}
|
|
|
|
|
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
|
|
|
|
|
$params['game_id'] = ['in', $gameId];
|
|
|
|
|
$gameIds = gameSearch($relationGameId, $sdkVersion);
|
|
|
|
|
$params['game_id'] = ['in', $gameIds];
|
|
|
|
|
}
|
|
|
|
|
if ($serverId > 0) {
|
|
|
|
|
$params['server_id'] = $serverId;
|
|
|
|
|