From d795fb74f79e768c1b44d0278146f0dfc67f8a3a Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 16 Dec 2019 20:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0>=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=AE=A1=E7=90=86>=E5=85=85=E5=80=BC=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/QueryController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {