@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | 'state' => $this->config['state'], |
35 | 35 | 'scope' => $this->config['scope'], |
36 | 36 | ]; |
37 | - return $this->AuthorizeURL . '?' . http_build_query($params); |
|
37 | + return $this->AuthorizeURL.'?'.http_build_query($params); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $params = [ |
74 | 74 | 'access_token'=>$this->token['access_token'], |
75 | 75 | ]; |
76 | - $data = $this->get($this->UserInfoURL,$params); |
|
76 | + $data = $this->get($this->UserInfoURL, $params); |
|
77 | 77 | return json_decode($data, true); |
78 | 78 | } |
79 | 79 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Description: 获取AccessToken |
93 | 93 | */ |
94 | - protected function getToken(){ |
|
94 | + protected function getToken() { |
|
95 | 95 | if (empty($this->token)) { |
96 | 96 | /** 验证state参数 */ |
97 | 97 | $this->CheckState(); |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | $params = $this->accessTokenParams(); |
101 | 101 | |
102 | 102 | /** 获取access_token */ |
103 | - $this->AccessTokenURL = $this->AccessTokenURL . '?' . http_build_query($params); |
|
104 | - $token = $this->post($this->AccessTokenURL); |
|
103 | + $this->AccessTokenURL = $this->AccessTokenURL.'?'.http_build_query($params); |
|
104 | + $token = $this->post($this->AccessTokenURL); |
|
105 | 105 | /** 解析token值(子类实现此方法) */ |
106 | 106 | $this->token = $this->parseToken($token); |
107 | 107 | } |