授权请求,请注意参数顺序,顺序不对,电脑端微信打不开页面哦!
appid
:微信公众号对应的appId
redirect_uri
:授权成功后的跳转链接
response_type
:code
scope
: snsapi_userinfo
示例:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2e3541842bf08888&redirect_uri=http%3A%2F%2F10.100.158.158%2Fh5Demo&response_type=code&scope=snsapi_userinfo