关于登录授权问题,我index.php中代码header('location:https://open.weixin.qq.com/connect/oauth2/authorize?appid=我的appid&redirect_uri=192.168.1.127%2foauth2.php&response_type=code&scope=snsapi_login&state=1#wechat_redirect');
然后在微信中打开192.168.1.127,根据代码会跳转到微信授权页面,授权成功后按照我的理解应该会跳转到192.168.1.127/oauth.php&code=xxxxxx&state=xxx,但是没有跳转过去,而是跳转到
https://open.weixin.qq.com/connect/oauth2/192.168.1.127/oauth.php?code...;问下这是怎么回事呢?
redirect_uri
应该需要带scheme
, http://example.com/foo.php