...
|
...
|
@@ -92,7 +92,8 @@ class CardController extends RestBaseController |
|
|
->whereOr($condition2)
|
|
|
->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')
|
|
|
->order('top desc,c.create_time desc')
|
|
|
->paginate($per_page);
|
|
|
->select(false);
|
|
|
$this->success('获取成功',$result);
|
|
|
if ($result === false) {
|
|
|
$this->error(['code'=>'40000','msg'=>'获取失败']);
|
|
|
}
|
...
|
...
|
|