diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 65914ed99..94fdbe5b1 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -4011,6 +4011,21 @@ class DownloadController extends BaseController { ]; 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'); + } }