Commit 00cddc64 authored by zhuwei's avatar zhuwei

客户跟进上下客户

parent e2d07812
......@@ -503,10 +503,10 @@ class User extends Basic
header('Access-Control-Allow-Origin:*');
$params = $this->params;
// $checkResult = $this->validate($params, "UserGetLastOrNextUserIdPhoneFollowPuValidate.verifyStatus");
// if (true !== $checkResult) {
// return $this->response("300", $checkResult);
// }
$checkResult = $this->validate($params, "UserGetLastOrNextUserIdPhoneFollowPuValidate.verifyStatus");
if (true !== $checkResult) {
return $this->response("300", $checkResult);
}
// $params = array(
// "id" => 1956,
......@@ -617,10 +617,10 @@ class User extends Basic
}
// 判断当天被拨打是否超过5次
// $clientService = new ClientService();
// if (!$clientService->dialTotal($model_res[0]['user_id'])) {
// return $this->response("201", "当天被拨打超过5次", ['user_id'=>$model_res[0]['id']]);
// }
$clientService = new ClientService();
if (!$clientService->dialTotal($model_res[0]['user_id'])) {
return $this->response("201", "当天被拨打超过5次", ['user_id'=>$model_res[0]['id']]);
}
//如果非客方
if($model_res[0]['agent_id'] != $params['agent_id']){
......@@ -641,9 +641,9 @@ class User extends Basic
return $this->response("201", "24小时保护期内", ['id'=>$model_res[0]['id']]);
}
}
// dump($model_res);exit();
// dump($model_res);exit();
$where = [];
// $where['city'] = trim($this->city);
// $where['city'] = trim($this->city);
$field = 'max(a.id) as max_id';
$order = 'a.id asc';
$max_id = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = '', $order);
......
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