...
|
...
|
@@ -17,7 +17,7 @@ class PrivateNumber extends Api |
|
|
//如果接口已经设置无需登录,那也就无需鉴权了
|
|
|
//
|
|
|
// 无需登录的接口,*表示全部
|
|
|
protected $noNeedLogin = ['bind', 'search', 'unbind'];
|
|
|
protected $noNeedLogin = ['*'];
|
|
|
// 无需鉴权的接口,*表示全部
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
...
|
...
|
@@ -203,7 +203,7 @@ class PrivateNumber extends Api |
|
|
/**
|
|
|
* 解绑接口
|
|
|
*/
|
|
|
public static function unbind($subscriptionId = '',$relationNum = '')
|
|
|
public 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') {
|
|
|
self::error($res['resultdesc']);
|
|
|
$this->error($res['resultdesc']);
|
|
|
}
|
|
|
Db::name('private_number')->where('subscription_id',$subscriptionId)->delete();
|
|
|
} catch (Exception $e) {
|
|
|
self::error($e->getMessage());
|
|
|
$this->error($e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|