Commit 25a12e74 authored by hujun's avatar hujun

容联云回调数据主叫被叫判断

parent f7b18b98
......@@ -154,6 +154,13 @@ class PrivacyNumber
$phone_a = $phone[0];
$phone_b = $phone[1];
//主叫
if ($phone_a == $params['callerNum']) {
$call_type = 0;
} else {
$call_type = 1;
}
$date = [
'call_id' => $params['callId'],
'phone_no' => $phone_a,/*A*/
......@@ -168,6 +175,7 @@ class PrivacyNumber
'mapping_id' => $params['mappingId'],/*绑定容联云id*/
'type' => 2,
'call_display' => $params['calldisplay'],
'call_type' => $call_type,
];
if ($phone_a) {
......
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