...
|
...
|
@@ -203,7 +203,7 @@ class PrivateNumber extends Api |
|
|
/**
|
|
|
* 解绑接口
|
|
|
*/
|
|
|
public function unbind($subscriptionId = '',$relationNum = '')
|
|
|
public static function unbind($subscriptionId = '',$relationNum = '')
|
|
|
{
|
|
|
// 必填,请参考"开发准备"获取如下数据,替换为实际值
|
|
|
$realUrl = config('privatenumber.real_url'); // APP接入地址+接口访问URI
|
...
|
...
|
@@ -250,11 +250,11 @@ class PrivateNumber extends Api |
|
|
// print_r($response . PHP_EOL); // 打印响应结果
|
|
|
$res = json_decode($response,true);
|
|
|
if($res['resultcode'] != '0') {
|
|
|
$this->error($res['resultdesc']);
|
|
|
self::error($res['resultdesc']);
|
|
|
}
|
|
|
Db::name('private_number')->where('subscription_id',$subscriptionId)->delete();
|
|
|
} catch (Exception $e) {
|
|
|
$this->error($e->getMessage());
|
|
|
self::error($e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|