Commit 6eeb6be9 authored by hujun's avatar hujun

status=0

parent de0e66cb
...@@ -165,11 +165,8 @@ class BindingPhone extends BaseModel ...@@ -165,11 +165,8 @@ class BindingPhone extends BaseModel
* *
* @param $id * @param $id
* @param $aliYun_phone_id * @param $aliYun_phone_id
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function unBindTable($id, $aliYun_phone_id) public function unBindTable($id, $aliYun_phone_id = 0)
{ {
//由虚拟号码提供 //由虚拟号码提供
// $phone = new AliYunPhone(); // $phone = new AliYunPhone();
......
...@@ -176,7 +176,8 @@ class PrivacyNumber ...@@ -176,7 +176,8 @@ class PrivacyNumber
//释放阿里云隐私号码 //释放阿里云隐私号码
$result = PlsDemo::unbindSubscription($v['subsId'], $v['phone_x']); $result = PlsDemo::unbindSubscription($v['subsId'], $v['phone_x']);
if ($result->Message == 'OK') { if ($result->Message == 'OK') {
$bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b'], $result->RequestId); // $bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b'], $result->RequestId);
$bind->unBindTable($v['id']);
$binding_phone_id[$k] = $v['id']; $binding_phone_id[$k] = $v['id'];
$phone_id[$k] = $v['aliYun_phone_id']; $phone_id[$k] = $v['aliYun_phone_id'];
} }
...@@ -188,13 +189,15 @@ class PrivacyNumber ...@@ -188,13 +189,15 @@ class PrivacyNumber
$tong_xun = new RongDemo(); $tong_xun = new RongDemo();
$result = $tong_xun->releaseNumber($v['mappingId']);/*解绑*/ $result = $tong_xun->releaseNumber($v['mappingId']);/*解绑*/
if ($result['statusCode'] == '000000') { if ($result['statusCode'] == '000000') {
$bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b']); // $bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b']);
$bind->unBindTable($v['id']);
$binding_phone_id[$k] = $v['id']; $binding_phone_id[$k] = $v['id'];
$phone_id[$k] = $v['aliYun_phone_id']; $phone_id[$k] = $v['aliYun_phone_id'];
} else { } else {
$yun_result = $tong_xun->getBindInfo($v['phone_a'], $v['phone_b'], $v['phone_x'], $v['mappingId']); $yun_result = $tong_xun->getBindInfo($v['phone_a'], $v['phone_b'], $v['phone_x'], $v['mappingId']);
if (empty($yun_result['data']['mappingId'])) { if (empty($yun_result['data']['mappingId'])) {
$bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b']); // $bind->unBind($v['phone_x'], $v['phone_a'], $v['phone_b']);
$bind->unBindTable($v['id']);
} }
} }
......
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