Commit 28e3c419 authored by hujun's avatar hujun

处理释放慢的隐私号码

parent b92d6e6d
...@@ -342,9 +342,8 @@ class CallPhoneService ...@@ -342,9 +342,8 @@ class CallPhoneService
$subsId = $phone->getSubsId($this->phone_x, $this->phone_a, $this->phone_b, 1, 'subsId'); $subsId = $phone->getSubsId($this->phone_x, $this->phone_a, $this->phone_b, 1, 'subsId');
if ($subsId) { if ($subsId) {
$result = PlsDemo::unbindSubscription($subsId, $this->phone_x);/*解绑*/ $result = PlsDemo::unbindSubscription($subsId, $this->phone_x);/*解绑*/
if ($result->Message == 'OK') { if ($result->Message != 'OK') {
$this->redis->del($call_key); // } else {
} else {
$data['status'] = 'failed'; $data['status'] = 'failed';
$data['msg'] = '解除失败,如果需要继续与客户沟通,请联系运营!'; $data['msg'] = '解除失败,如果需要继续与客户沟通,请联系运营!';
} }
...@@ -358,15 +357,17 @@ class CallPhoneService ...@@ -358,15 +357,17 @@ class CallPhoneService
if ($mappingId) { if ($mappingId) {
$result = $yun_tong_xun->releaseNumber($mappingId);/*解绑*/ $result = $yun_tong_xun->releaseNumber($mappingId);/*解绑*/
if ($result['statusCode'] == '000000') { // if ($result['statusCode'] == '000000') {
$this->redis->del($call_key); // $this->redis->del($call_key);
} // }
} else { } else {
$data['msg'] = '没有号码绑定关系,请忽略!。'; $data['msg'] = '没有号码绑定关系,请忽略!。';
} }
} else { } else {
$data['msg'] = '没有号码绑定关系,请忽略!。'; $data['msg'] = '没有号码绑定关系,请忽略!。';
} }
$this->redis->del($call_key);
} catch (\Exception $e) { } catch (\Exception $e) {
$data['status'] = 'failed'; $data['status'] = 'failed';
$data['msg'] = $e->getMessage(); $data['msg'] = $e->getMessage();
......
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