dodgepudding/wechat-php-sdk — pull request #86 by ys21426 (2014-04-08 10:07:24+00:00)
Title: 修复了登陆时出错

登陆页面返回的json改变了
if ($result['ErrCode']!=0) return false; 改为 if ($result['base_resp']['err_msg']!='ok') return false;
preg_match("/token=(\d+)/i",$result['ErrMsg'],$matches); 改为 preg_match("/token=(\d+)/i",$result['redirect_url'],$matches);