Commit 026cf7a5 authored by zhuwei's avatar zhuwei

bug

parent 3c792e86
......@@ -522,7 +522,7 @@ class Broker extends Basic
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
//0允许拨打 1不允许拨打
$data['is_outpace_call_num'] = 0;
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
if (!$clientService->dialTotal($params["user_id"])) {
$data['is_outpace_call_num'] = 1;
}
......
......@@ -103,7 +103,7 @@ class HomePageLog extends Basic
$order = "f.id desc";
$result = $this->uPhoneFollowUpModel->getSearch($pageNo, $pageSize, $order, $field, [], $where_, "");
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
foreach ($result as $key => $value) {
$agent_params = [];
$agent_params["a.id"] = $value['agent_id'];
......
......@@ -164,7 +164,7 @@ class User extends Basic
return $this->response("200", "此条件没有找到数据");
}
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
foreach ($userList as $k => $v) {
/*判断是否纯房东 0:否 1:是 start*/
$is_single_homeowner = 0;
......@@ -485,7 +485,7 @@ class User extends Basic
$call = new CallPhoneService();
$gresult = $call->getBindNum($user_res['user_phone'],$result[0]['phone']);*/
// 判断当天被拨打是否超过5次
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
if (!$clientService->dialTotal($user_res[0]['id'])) {
return $this->response("201", "当天被拨打超过5次", [ 'user_id' => $user_res[0]['id'] ]);
}
......@@ -653,7 +653,7 @@ class User extends Basic
$result = $model_agent->searchAgentsByKeyword("id,name,phone", [ "id" => $params["agent_id"] ]);
$call = new CallPhoneService();
$gresult = $call->getBindNum($model_res['user_phone'], $result[0]['phone']);
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
if (!$clientService->dialTotal($model_res[0]['user_id']) && $gresult == 0) {
return $this->response("201", "当天被拨打超过5次", [ 'id' => $model_res[0]['id'] ]);
}
......
......@@ -341,7 +341,7 @@ class Member extends Basic{
0允许拨打 1不允许拨打
start*/
$is_outpace_call_num = 0;
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
if (!$clientService->dialTotal($v["id"])) {
$is_outpace_call_num = 1;
}
......
......@@ -140,7 +140,7 @@ class Remark extends Basic
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 start*/
//0允许拨打 1不允许拨打
$is_outpace_call_num = 0;
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
if (!$clientService->dialTotal($v["user_id"])) {
$is_outpace_call_num = 1;
}
......@@ -314,7 +314,7 @@ class Remark extends Basic
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
//0允许拨打 1不允许拨打
$data['is_outpace_call_num'] = 0;
$clientService = new ClientService($this->siteId);
$clientService = new ClientService();
if (!$clientService->dialTotal($params["user_id"])) {
$data['is_outpace_call_num'] = 1;
}
......
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