|
|
@ -1655,12 +1655,12 @@ class QueryController extends BaseController
|
|
|
|
$result['status'] = 0;
|
|
|
|
$result['status'] = 0;
|
|
|
|
$result['data'] = [];
|
|
|
|
$result['data'] = [];
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($relationGameId) && empty($sdkVersion)) {
|
|
|
|
if (empty($relationGameId)) {
|
|
|
|
return $result;
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
empty($relationGameId) || $map['relation_game_id'] = $relationGameId;
|
|
|
|
$map['relation_game_id'] = intval($relationGameId);
|
|
|
|
empty($sdkVersion) || $map['sdk_version'] = $sdkVersion;
|
|
|
|
empty($sdkVersion) || $map['sdk_version'] = intval($sdkVersion);
|
|
|
|
|
|
|
|
|
|
|
|
$gameIds = M('Game', 'tab_')
|
|
|
|
$gameIds = M('Game', 'tab_')
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|