From 6a6f9458d1f11ceb0da4e333337c0153b36cd87d Mon Sep 17 00:00:00 2001 From: Tinywan <756684177@qq.com> Date: Thu, 11 Jan 2018 08:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20function=20getAccessToken?= =?UTF-8?q?=20=E5=87=BD=E6=95=B0=E9=BB=98=E8=AE=A4=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 6 ++++++ saetv2.ex.class.php | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/saetv2.ex.class.php b/saetv2.ex.class.php index c059fd6..5e0b11a 100644 --- a/saetv2.ex.class.php +++ b/saetv2.ex.class.php @@ -172,14 +172,14 @@ function getAuthorizeURL( $url, $response_type = 'code', $state = NULL, $display * * 对应API:{@link http://open.weibo.com/wiki/OAuth2/access_token OAuth2/access_token} * - * @param string $type 请求的类型,可以为:code, password, token * @param array $keys 其他参数: * - 当$type为code时: array('code'=>..., 'redirect_uri'=>...) * - 当$type为password时: array('username'=>..., 'password'=>...) * - 当$type为token时: array('refresh_token'=>...) - * @return array + * @param string $type 请求的类型,可以为:code, password, token + * @return array */ - function getAccessToken( $type = 'code', $keys ) { + function getAccessToken($keys,$type = 'code' ) { $params = array(); $params['client_id'] = $this->client_id; $params['client_secret'] = $this->client_secret;