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)