Commit e8610432 authored by hujun's avatar hujun

接口请求结果判断

parent 81b0c628
...@@ -122,7 +122,7 @@ class CallPhoneService ...@@ -122,7 +122,7 @@ class CallPhoneService
$result['phone'] = $phone_b; $result['phone'] = $phone_b;
return $result; return $result;
} }
$call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b; $call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b.'_'.$this->is_privacy;
$phone_x = $this->redis->get($call_key); $phone_x = $this->redis->get($call_key);
$bind = new BindingPhone(); $bind = new BindingPhone();
...@@ -137,7 +137,7 @@ class CallPhoneService ...@@ -137,7 +137,7 @@ class CallPhoneService
if (!empty($phone_x_arr['subsId']) && $phone_x_arr['phone_x']) { if (!empty($phone_x_arr['subsId']) && $phone_x_arr['phone_x']) {
//兼容 //兼容
$check_data = PlsDemo::querySubscriptionDetail($phone_x_arr['subsId'], $phone_x_arr['phone_x']); $check_data = PlsDemo::querySubscriptionDetail($phone_x_arr['subsId'], $phone_x_arr['phone_x']);
if ($check_data->Code == 'OK') { if ($check_data->Code == 'OK' && $check_data->SecretBindDetailDTO->Status == 1) {
$phone_x = $phone_x_arr['phone_x']; $phone_x = $phone_x_arr['phone_x'];
} }
} }
...@@ -355,7 +355,7 @@ class CallPhoneService ...@@ -355,7 +355,7 @@ class CallPhoneService
} }
$phone = new BindingPhone(); $phone = new BindingPhone();
$call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b; $call_key = 'call_'.$agent_id.'_'.$this->phone_a.'_'.$this->phone_b.'_'.$this->is_privacy;
try { try {
if ($this->is_privacy == 1) { if ($this->is_privacy == 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