Skip to content

Commit

Permalink
AccessToken过期bugfix,#163
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Nov 23, 2015
1 parent eed3490 commit a728612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wechat/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function request($url, $method = self::GET, $params = array(), $options =
}

// access token 超时重试处理
if ($this->token && $contents['errcode'] == '40001' && $retry > 0) {
if ($this->token && in_array($contents['errcode'], array('40001', '42001')) && $retry > 0) {
// force refresh
$this->token->getToken(true);

Expand Down

0 comments on commit a728612

Please sign in to comment.