Commit 72a8ecea authored by zhuwei's avatar zhuwei

客户详情上一页下一页接口

parent a8c329e0
...@@ -207,19 +207,19 @@ class User extends Basic ...@@ -207,19 +207,19 @@ class User extends Basic
$user = new Users(); $user = new Users();
$user_res = $user->getLastOrNextUserID($where, $field, $limit = 1, $order); $user_res = $user->getLastOrNextUserID($where, $field, $limit = 1, $order);
if (!$user_res) { if (!$user_res) {
return $this->response("200", "查无数据", []); return $this->response("201", "查无数据", ['user_id'=>$params['user_id']]);
} }
// 判断是否vip客户,如果是 只有是当前经纪人自己的客户才能查看 // 判断是否vip客户,如果是 只有是当前经纪人自己的客户才能查看
//vip客户 0:否 1:是 //vip客户 0:否 1:是
if (($user_res['vip'] == 1) && ($user_res['agent_id'] != $params['agent_id'])) { if (($user_res['vip'] == 1) && ($user_res['agent_id'] != $params['agent_id'])) {
return $this->response("200", "vip 非客方", []); return $this->response("201", "vip 非客方", ['user_id'=>$user_res[0]['id']]);
} }
// 判断当天被拨打是否超过5次 // 判断当天被拨打是否超过5次
$clientService = new ClientService(); $clientService = new ClientService();
if (!$clientService->dialTotal($params['user_id'])) { if (!$clientService->dialTotal($params['user_id'])) {
return $this->response("200", "当天被拨打超过5次", []); return $this->response("201", "当天被拨打超过5次", ['user_id'=>$user_res[0]['id']]);
} }
$where = []; $where = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment