public function getRequestCodeURL()
{
//Oauth 标准参数
$params = ['client_id' => $this->appKey, 'redirect_uri' => $this->callback, 'response_type' => $this->responseType];
//获取额外参数
if ($this->authorize) {
parse_str($this->authorize, $_param);
if (is_array($_param)) {
$params = array_merge($params, $_param);
} else {
throw new \Exception('AUTHORIZE配置不正确!');
}
}
return $this->getRequestCodeURL . '?' . http_build_query($params);
}