作者 何书鹏

用户授权获取手机号

... ... @@ -16,7 +16,7 @@ use think\Db;
*/
class User extends Api
{
protected $noNeedLogin = ['third','joinUs','getPhoneNumber'];
protected $noNeedLogin = ['third','joinUs'];
protected $noNeedRight = '*';
public function _initialize()
... ... @@ -135,6 +135,7 @@ class User extends Api
/**
* @ApiTitle (用户授权获取手机号)
* @ApiMethod (POST)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="sessionKey", type="string", required=true, description="小程序sessionKey")
* @ApiParams (name="iv", type="string", required=true, description="小程序iv")
* @ApiParams (name="encryptedData", type="string", required=true, description="小程序encryptedData")
... ...