yemao

Results 1 issues of yemao

我的企业号升级为企业微信,发现无法正常获取access_token. 发现checkAuth方法中if (!$json || isset($json['errcode'])) 其中返回的json实际是有errcode的,值为0,导致return false.之前这样判断没问题,不知是不是升级后变更了的原因,我修改成if (!$json || $json['errcode'] !=0) 后就正常获取了 具体位置 https://github.com/dodgepudding/wechat-php-sdk/blob/master/qywechat.class.php#L897