作者 lishaoshuai
1 个管道 的构建 通过 耗费 0 秒

更新 CardController.php

@@ -95,7 +95,7 @@ class CardController extends RestBaseController @@ -95,7 +95,7 @@ class CardController extends RestBaseController
95 ->where($where) 95 ->where($where)
96 ->field('c.id,c.name,c.position,c.tel,c.home_tel,c.email,c.company,u.avatar,IF(c.user_id='.$this->userId.',c.user_id,0) top') 96 ->field('c.id,c.name,c.position,c.tel,c.home_tel,c.email,c.company,u.avatar,IF(c.user_id='.$this->userId.',c.user_id,0) top')
97 ->order('top desc,c.create_time desc') 97 ->order('top desc,c.create_time desc')
98 - ->select(false); 98 + ->paginate($per_page);
99 } else { 99 } else {
100 $result = Db::name('card') 100 $result = Db::name('card')
101 ->alias('c') 101 ->alias('c')