手机端微信打开就是这样
以下是控制台的信息,我打印了请求url
Starting development server at http://127.0.0.1:80/
Quit the server with CTRL-BREAK.
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx478762de33427c1d&redirect_uri=http://zhang.tunnel.qydev.com/oauth/&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
[02/May/2016 20:48:15] "GET /oauth/ HTTP/1.1" 302 0
我用ngrok转发的,微信signature验证是没问题的
请问这里哪里出了问题,请求指点
下面是后台函数
def get_connect_url(self,
redirect_url,
scope="snsapi_userinfo",
state="STATE"):
redirect_url = urllib.parse.quote("http://zhang.tunnel.qydev.com/oauth")
return CONNECT_URL%(self.app_id, redirect_url, scope, state)
不能在localhost调试。另外可以查看参数的顺序。这个是有要求的。