Commit 28e3c419 authored by hujun's avatar hujun

处理释放慢的隐私号码

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