1, ]; /** * [getDataList 获取列表] * @return [array] */ public function getDataList($request) { $request = $this->fmtRequest( $request ); $map = $request['map']; if (isset($map['search'])) { $map['name'] = ['like', '%'.$map['search'].'%']; unset($map['search']); } else { $map = where_arr($map, 'member'); //高级筛选 } $data = $this->where($map)->page($request['page'], $request['limit'])->select(); return $data; } }