Commit fc4ac005 authored by zhuwei's avatar zhuwei

PC后台useraction_search客户详情修改

parent dfa30ae5
......@@ -8,6 +8,8 @@
namespace app\index\controller;
use app\api_broker\service\CallPhoneService;
use app\api_broker\service\ClientService;
use app\api_broker\service\UserExpiredTimeService;
use app\index\extend\Basic;
use app\model\AAgents;
......@@ -269,6 +271,23 @@ class Remark extends Basic
}
}
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
//0允许拨打 1不允许拨打
$data['is_outpace_call_num'] = 0;
$clientService = new ClientService();
if (!$clientService->dialTotal($params["user_id"])) {
$data['is_outpace_call_num'] = 1;
}
$model = new AAgents();
$result = $model->searchAgentsByKeyword("id,name,phone", [ "id" => $params["agent_id"]]);
$call = new CallPhoneService();
$result = $call->getBindNum($user_res['user_phone'],$result[0]['phone']);
if($result != 0){
$data['is_outpace_call_num'] = 0;
}
return $this->response("200", "success!", [
'user_info' => $user_res,
'user_date' => $UPhoneFollowPp_res,
......
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