授權(quán)請求,請注意參數(shù)順序,順序不對,電腦端微信打不開頁面哦!
appid:微信公眾號對應(yīng)的appId
redirect_uri:授權(quán)成功后的跳轉(zhuǎn)鏈接
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