diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 9af3fa9a9..d40432f1c 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1685,6 +1685,8 @@ class QueryController extends BaseController $gameMap['sdk_version'] = $sdkVersion; } $gameId = M('game', 'tab_')->where($gameMap)->getField('id', true); + $gameId = $gameId ?? []; + $map['game_id'] = ['in', $gameId]; } if ($serverId != 0) { @@ -1798,6 +1800,7 @@ class QueryController extends BaseController $gameMap['sdk_version'] = $sdkVersion; } $gameId = M('game', 'tab_')->where($gameMap)->getField('id', true); + $gameId = $gameId ?? []; $map['uc.game_id'] = ['in', $gameId]; $subMap['game_id'] = ['in', $gameId]; @@ -1894,7 +1897,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']; @@ -2086,6 +2088,8 @@ class QueryController extends BaseController $gameMap['sdk_version'] = $sdkVersion; } $gameId = M('game', 'tab_')->where($gameMap)->getField('id', true); + $gameId = $gameId ?? []; + $params['game_id'] = ['in', $gameId]; } if ($serverId > 0) {