Commit 772f1a43 authored by hujun's avatar hujun

隐私号码判断

parent 69b6cd64
......@@ -12,6 +12,7 @@ namespace app\api_broker\service;
use app\api_broker\untils\PlsDemo;
use app\api_broker\untils\RongDemo;
use app\extra\RedisExt;
use app\index\service\UserLogService;
use app\model\AliYunPhone;
use app\model\BindingPhone;
use app\model\AliYunSecretReport;
......@@ -115,6 +116,18 @@ class CallPhoneService
return $result;
}
$clientService = new UserLogService();
$is_outpace_call_num = $clientService->userDetailIsOutpaceCallNum5($user_id);
if ($is_outpace_call_num) {
$result['msg'] = '拨打次数超过5次,不能拨打。';
return $result;
}
$called = $clientService->userDetailIsOutpaceCallNumPhone($phone_b, $agent_id);
if ($called) {
$result['msg'] = '没有绑定关系,不能拨打。';
return $result;
}
$this->phone_a = $phone_a;//经纪人手机号
$this->phone_b = $phone_b;//客户手机号
$this->record = $record; //是否录音
......
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