Commit 6bb8fe00 authored by zw's avatar zw

Merge branch 'test'

parents bf7c3fa7 cb9de605
......@@ -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,16 @@ class CallPhoneService
return $result;
}
$clientService = new UserLogService();
$is_outpace_call_num = $clientService->userDetailIsOutpaceCallNum5($user_id);
if ($is_outpace_call_num) {
$called = $clientService->userDetailIsOutpaceCallNumPhone($phone_b, $agent_id);
if ($called) {
$result['msg'] = '拨打次数超过5次,不能拨打。';
return $result;
}
}
$this->phone_a = $phone_a;//经纪人手机号
$this->phone_b = $phone_b;//客户手机号
$this->record = $record; //是否录音
......
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=201906886' charset='utf-8'></script>
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=2019068862' charset='utf-8'></script>
......@@ -247,6 +247,7 @@
color: #FF8018;
text-decoration: none;
font-weight: 600;
display: none;
}
.user_call:hover{
text-decoration: none;
......@@ -572,7 +573,7 @@
<td>
<span class="fore-span">电话:</span>
<span class="fore-span cus_phone"></span>
<a class="fore-span user_call" >拨打</a>
<a class="fore-span user_call">拨打</a>
</td>
<td>
......
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