提交 15739a0b 编写于 作者: W wolfcode

Update Curd.php

上级 ce19a034
......@@ -31,7 +31,7 @@ trait Curd
}
list($page, $limit, $where) = $this->buildTableParams();
$count = $this->model->where($where)->count();
$list = $this->model->where($where)->order($this->order)->limit($limit)->select()->toArray();
$list = $this->model->where($where)->order($this->order)->page($page, $limit)->select()->toArray();
$data = [
'code' => 0,
'msg' => '',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册