正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -70,11 +70,14 @@ class Client extends Base | @@ -70,11 +70,14 @@ class Client extends Base | ||
70 | $activity_id=$this->postParam['id']; | 70 | $activity_id=$this->postParam['id']; |
71 | $where['type']=1; | 71 | $where['type']=1; |
72 | $where['verification_activity_id']=$activity_id; | 72 | $where['verification_activity_id']=$activity_id; |
73 | + $page = $this->request->post('page', 1); | ||
74 | + $total = $this->request->post('total', 10); | ||
73 | 75 | ||
74 | $user=Db::name("verification_order") | 76 | $user=Db::name("verification_order") |
75 | ->where($where) | 77 | ->where($where) |
76 | ->field('name,createtime') | 78 | ->field('name,createtime') |
77 | - ->select(); | 79 | + ->paginate($total, false, ['page' => $page]) |
80 | + ->toArray(); | ||
78 | if(!empty($user)){ | 81 | if(!empty($user)){ |
79 | for ($i=0;$i<count($user);$i++){ | 82 | for ($i=0;$i<count($user);$i++){ |
80 | $sort=$i+1; | 83 | $sort=$i+1; |
-
请 注册 或 登录 后发表评论