Merge pull request '查询' (#536) from hotfix/like_account into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/536
master
廖金灵 3 years ago
commit 19f0fb268a

@ -85,7 +85,7 @@ class ExportController extends Controller
unset($_REQUEST['game_name']); unset($_REQUEST['game_name']);
} }
if (isset($_REQUEST['user_account'])) { if (isset($_REQUEST['user_account'])) {
$map['user_account'] = array('like','%'.trim($_REQUEST['user_account']).'%'); $map['user_account'] = array('like',trim($_REQUEST['user_account']).'%');
unset($_REQUEST['user_account']); unset($_REQUEST['user_account']);
} }
if (isset($_REQUEST['server_name'])) { if (isset($_REQUEST['server_name'])) {

@ -778,7 +778,8 @@ class UserController extends AdminController
} }
empty(I('user_account')) || $map['user_account'] = ['like', "%" . I('user_account') . "%"]; // empty(I('user_account')) || $map['user_account'] = ['like', "%" . I('user_account') . "%"];
empty(I('user_account')) || $map['user_account'] = ['like', I('user_account') . "%"];
$this->checkListOrCountAuthRestMap($map,["role_id", "role_name", "user_account"]); $this->checkListOrCountAuthRestMap($map,["role_id", "role_name", "user_account"]);
$list = $this->lists(M('user_play_info', 'tab_'), $map, 'play_time desc'); $list = $this->lists(M('user_play_info', 'tab_'), $map, 'play_time desc');

Loading…
Cancel
Save