@@ -129,7 +129,9 @@ discard block |
||
129 | 129 | ]; |
130 | 130 | $this->config = array_merge($_config, $config); |
131 | 131 | foreach($this->config as $key=>$val){ |
132 | - if(property_exists($this,$key)) $this->$key=$val; |
|
132 | + if(property_exists($this,$key)) { |
|
133 | + $this->$key=$val; |
|
134 | + } |
|
133 | 135 | } |
134 | 136 | $this->timestamp = time(); |
135 | 137 | } |
@@ -267,7 +269,7 @@ discard block |
||
267 | 269 | $token = $this->post($this->AccessTokenURL, $params,$this->getHeaders()); |
268 | 270 | /** 解析token值(子类实现此方法) */ |
269 | 271 | $this->token = $this->parseToken($token); |
270 | - }else{ |
|
272 | + } else{ |
|
271 | 273 | return $this->token; |
272 | 274 | } |
273 | 275 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | } else { |
29 | 29 | exit('获取登录数据失败'); |
30 | 30 | } |
31 | - }catch (\Exception $exception){ |
|
31 | + } catch (\Exception $exception){ |
|
32 | 32 | echo $exception->getFile(); |
33 | 33 | echo $exception->getLine(); |
34 | 34 | echo $exception->getMessage(); |