【增加】获取手机号
This commit is contained in:
parent
c661f82c16
commit
f1e6fe8aeb
|
|
@ -88,7 +88,7 @@ return [
|
|||
[
|
||||
'name' => 'PROMOTION_POSTER',
|
||||
'title' => '推广海报',
|
||||
'wap_url' => '/pages_promotion/fenxiao/promote_code',
|
||||
'wap_url' => '/pages_promotion/fenxiao/promote_code?templateId=1',
|
||||
'web_url' => '',
|
||||
'sort' => 0
|
||||
],
|
||||
|
|
|
|||
|
|
@ -112,4 +112,16 @@ class Tripartite extends BaseApi
|
|||
}
|
||||
return $this->response($res);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取手机号
|
||||
* @return false|string
|
||||
*/
|
||||
public function getPhoneNumber()
|
||||
{
|
||||
$decrypt_data = event('DecryptData', $this->params, true);
|
||||
if ($decrypt_data[ 'code' ] < 0) return $this->response($decrypt_data);
|
||||
|
||||
return $this->response(success(0, '', [ 'mobile' => $decrypt_data[ 'data' ][ 'purePhoneNumber' ] ]));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue