From 5b6e9da5d8907ddd85ea45b8018e1a5f7fa52a13 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Fri, 17 Jan 2020 18:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=8C=BA=E6=9C=8D=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/DownloadController.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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'); + } }