|
|
@ -4012,5 +4012,20 @@ class DownloadController extends BaseController {
|
|
|
|
return $game;
|
|
|
|
return $game;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private function getServerName($gameIds, $serverVersion, $serverId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$map['_string'] = '1 = 1';
|
|
|
|
|
|
|
|
if ($gameIds) {
|
|
|
|
|
|
|
|
$map['game_id'] = $gameIds;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($serverVersion) {
|
|
|
|
|
|
|
|
$map['server_version'] = $serverVersion;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($serverId) {
|
|
|
|
|
|
|
|
$map['server_id'] = $serverId;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return M('server', 'tab_')->where($map)->getField('server_name');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|