@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $formatted = $this->castResponseToType($response, $this->app['config']->get('response_type')); |
182 | 182 | |
183 | 183 | if (empty($result[$this->tokenKey])) { |
184 | - throw new HttpException('Request access_token fail: ' . json_encode($result, JSON_UNESCAPED_UNICODE), $response, $formatted); |
|
184 | + throw new HttpException('Request access_token fail: '.json_encode($result, JSON_UNESCAPED_UNICODE), $response, $formatted); |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | return $toArray ? $result : $formatted; |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | */ |
233 | 233 | protected function getCacheKey() |
234 | 234 | { |
235 | - return $this->cachePrefix . md5(json_encode($this->getCredentials())); |
|
235 | + return $this->cachePrefix.md5(json_encode($this->getCredentials())); |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | /** |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | public function getEndpoint() : string |
260 | 260 | { |
261 | 261 | if ($this->app['config']->has('http.base_uri') && strpos($this->app['config']->get('http.base_uri'), 'api.q.qq.com') !== false) { |
262 | - $this->endpointToGetToken = $this->app['config']->get('http.base_uri') . 'api/getToken'; |
|
262 | + $this->endpointToGetToken = $this->app['config']->get('http.base_uri').'api/getToken'; |
|
263 | 263 | } |
264 | 264 | |
265 | 265 | if (empty($this->endpointToGetToken)) { |