|
|
@ -91,6 +91,8 @@ class AjaxController extends ThinkController{
|
|
|
|
$map = [];
|
|
|
|
$map = [];
|
|
|
|
if ($game) {
|
|
|
|
if ($game) {
|
|
|
|
$map['game_id'] = ['in', $game];
|
|
|
|
$map['game_id'] = ['in', $game];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$map['game_id'] = ['in', [-1]];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data = M('Server', 'tab_')->field('id, server_name, server_id')->where($map)->group('server_name')->select();
|
|
|
|
$data = M('Server', 'tab_')->field('id, server_name, server_id')->where($map)->group('server_name')->select();
|
|
|
|
$this->AjaxReturn($data);
|
|
|
|
$this->AjaxReturn($data);
|
|
|
|