diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 5f65c24ce..68fe07c75 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -85,7 +85,7 @@ class ExportController extends Controller unset($_REQUEST['game_name']); } 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']); } if (isset($_REQUEST['server_name'])) { diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index 55a3f4f52..2ac2d591c 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -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"]); $list = $this->lists(M('user_play_info', 'tab_'), $map, 'play_time desc');