【增加】获取手机号

This commit is contained in:
liqianjin 2023-03-27 15:06:12 +08:00
parent c661f82c16
commit f1e6fe8aeb
2 changed files with 13 additions and 1 deletions

View File

@ -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
],

View File

@ -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' ] ]));
}
}