修复 in 问题

master
yulingwei 5 years ago
parent bc7c6b493c
commit f33ec364c3

@ -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);

Loading…
Cancel
Save