mirror of https://gitee.com/karson/fastadmin.git
修复搜索时op参数被过滤的BUG
parent
5fa5ef2750
commit
1ceece32d7
|
|
@ -26,6 +26,8 @@ class Attachment extends Backend
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
//设置过滤方法
|
||||
$this->request->filter(['strip_tags']);
|
||||
if ($this->request->isAjax())
|
||||
{
|
||||
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class Profile extends Backend
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
//设置过滤方法
|
||||
$this->request->filter(['strip_tags']);
|
||||
if ($this->request->isAjax())
|
||||
{
|
||||
$model = model('AdminLog');
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ class Backend extends Controller
|
|||
$relationSearch = is_null($relationSearch) ? $this->relationSearch : $relationSearch;
|
||||
$search = $this->request->get("search", '');
|
||||
$filter = $this->request->get("filter", '');
|
||||
$op = $this->request->get("op", '');
|
||||
$op = $this->request->get("op", '', 'trim');
|
||||
$sort = $this->request->get("sort", "id");
|
||||
$order = $this->request->get("order", "DESC");
|
||||
$offset = $this->request->get("offset", 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue