打印的数据乱码,在方法前加:header('Content-type:text/html;charset=utf-8');
2017-09-19
如果出现了40163,应该是微信访问了两次userinfo,我是这样处理的:在第一次跳转时,给access_token和openid设置session: $_SESSION['tk']=$access_token; $_SESSION['opd']=$open_id; $_SESSION['ext']=time()+7000;如果出现再次访问userinfo就判断session是否存在: if(session存在,token未过期){$access_token=$_SESSION['tk'];
$open_id= $_SESSION['opd'];}
$open_id= $_SESSION['opd'];}
2017-09-19
array(2) { ["errcode"]=> int(41008) ["errmsg"]=> string(47) "missing code, hints: [ req_id: .WGJca0336th50 ]" }
2017-08-24