4.0日常更新
This commit is contained in:
@@ -19,9 +19,8 @@ class Ad extends Admin{
|
||||
*/
|
||||
public function index(AdPlace $adp){
|
||||
if ($this->request->isAjax()) {
|
||||
$res = $adp->paginate(25, false, array(
|
||||
'query' => $this->request->param()
|
||||
));
|
||||
$param = $this->request->param();
|
||||
$res = $adp->paginate($this->request->pageConfig);
|
||||
|
||||
$data = $res->append(['show_type_text', 'status_text'])->toArray();
|
||||
$this->data['data'] = $data;
|
||||
@@ -104,9 +103,7 @@ class Ad extends Admin{
|
||||
*/
|
||||
public function lists(AdModel $ad){
|
||||
if ($this->request->isAjax()) {
|
||||
$res = $ad->paginate(25, false, array(
|
||||
'query' => $this->request->param()
|
||||
));
|
||||
$res = $ad->paginate($this->request->pageConfig);
|
||||
$data = $res->append(['cover','status_text'])->toArray();
|
||||
$this->data['data'] = $data;
|
||||
return $this->data;
|
||||
|
||||
Reference in New Issue
Block a user