Commit 6829c230 authored by zhuwei's avatar zhuwei

提示文案修改

parent bbba456f
...@@ -191,7 +191,7 @@ class User extends Basic ...@@ -191,7 +191,7 @@ class User extends Basic
return $this->response("300", $checkResult); return $this->response("300", $checkResult);
} }
//todo 判断是 杭州还是上海 // 判断是 杭州还是上海
$where['city'] = trim($this->city); $where['city'] = trim($this->city);
if ($params['type'] == 'last') { if ($params['type'] == 'last') {
$where['id'] = [ 'gt', $params['user_id'] ]; $where['id'] = [ 'gt', $params['user_id'] ];
...@@ -206,19 +206,19 @@ class User extends Basic ...@@ -206,19 +206,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", "不符合条件0", []); return $this->response("200", "查无数据", []);
} }
//todo 判断是否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", "不符合条件1", []); return $this->response("200", "vip 非客方", []);
} }
//todo 判断 // 判断当天被拨打是否超过5次
$clientService = new ClientService(); $clientService = new ClientService();
if (!$clientService->dialTotal($params['user_id'])) { if (!$clientService->dialTotal($params['user_id'])) {
return $this->response("200", "不符合条件2", []); return $this->response("200", "当天被拨打超过5次", []);
} }
$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