获取区服名

master
sunke 5 years ago
parent 5974047e1c
commit 5b6e9da5d8

@ -4012,5 +4012,20 @@ 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');
}
}

Loading…
Cancel
Save