From c3c2f91c30ff2ae2a5fe5d7a16dc1507f6202943 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Thu, 24 Oct 2019 17:09:27 +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=E6=B1=87=E6=80=BB|=E6=AF=8F=E6=97=A5=E6=A6=82?= =?UTF-8?q?=E5=86=B5|=E8=AE=A2=E5=8D=95=E6=9F=A5=E8=AF=A2|=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E6=98=8E=E7=BB=86->=E6=A3=80=E7=B4=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= 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, 3 insertions(+), 3 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 5cfbb616b..ab6cfaf4e 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1655,12 +1655,12 @@ class QueryController extends BaseController $result['status'] = 0; $result['data'] = []; - if (empty($relationGameId) && empty($sdkVersion)) { + if (empty($relationGameId)) { return $result; } - empty($relationGameId) || $map['relation_game_id'] = $relationGameId; - empty($sdkVersion) || $map['sdk_version'] = $sdkVersion; + $map['relation_game_id'] = intval($relationGameId); + empty($sdkVersion) || $map['sdk_version'] = intval($sdkVersion); $gameIds = M('Game', 'tab_') ->where($map)