@@ -130,7 +130,7 @@ |
||
| 130 | 130 | throw new \Exception("AliPay APP登录 需要传输access_token参数! "); |
| 131 | 131 | } |
| 132 | 132 | $this->token['access_token'] = $_REQUEST['access_token']; |
| 133 | - }else { |
|
| 133 | + } else { |
|
| 134 | 134 | /** 获取token信息 */ |
| 135 | 135 | $this->getToken(); |
| 136 | 136 | } |
@@ -108,7 +108,9 @@ discard block |
||
| 108 | 108 | ]; |
| 109 | 109 | $this->config = array_merge($_config, $config); |
| 110 | 110 | foreach($this->config as $key=>$val){ |
| 111 | - if(property_exists($this,$key)) $this->$key=$val; |
|
| 111 | + if(property_exists($this,$key)) { |
|
| 112 | + $this->$key=$val; |
|
| 113 | + } |
|
| 112 | 114 | } |
| 113 | 115 | $this->timestamp = time(); |
| 114 | 116 | } |
@@ -246,7 +248,7 @@ discard block |
||
| 246 | 248 | $token = $this->POST($this->AccessTokenURL, $params); |
| 247 | 249 | /** 解析token值(子类实现此方法) */ |
| 248 | 250 | $this->token = $this->parseToken($token); |
| 249 | - }else{ |
|
| 251 | + } else{ |
|
| 250 | 252 | return $this->token; |
| 251 | 253 | } |
| 252 | 254 | } |