https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppId}&redirect_uri=${local}&response_type=code&scope=snsapi_userinfo&sta" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營(yíng)銷資訊 > 網(wǎng)站運(yùn)營(yíng) > 微信網(wǎng)頁授權(quán)登錄

微信網(wǎng)頁授權(quán)登錄

時(shí)間:2022-08-06 19:21:01 | 來源:網(wǎng)站運(yùn)營(yíng)

時(shí)間:2022-08-06 19:21:01 來源:網(wǎng)站運(yùn)營(yíng)

1.授權(quán)地址 參數(shù) appid redirect_url(配置好的網(wǎng)頁地址 小程序地址)

https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppId}&redirect_uri=${local}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect

授權(quán)成功以后 會(huì)跳到網(wǎng)頁地址后邊帶code參數(shù) 將此參數(shù)傳給后端

2.參數(shù) appid code appsecret 獲取獲取網(wǎng)頁授權(quán)acesstoken 和open_id 調(diào)用的API

https://api.weixin.qq.com/sns/oauth2/access_token?grant_type=authorization_code&appid=%s&secret=%s&code=%s

3.參數(shù) open_id acesstoken 獲取用戶信息 調(diào)用的API

https://api.weixin.qq.com/sns/userinfo?lang=zh_CN&access_token=%s&openid=%s

獲取到用戶信息以后剩下的就看自己操作了 如果那寫錯(cuò)啦 請(qǐng)指正 當(dāng)前為學(xué)習(xí)筆記



關(guān)鍵詞:授權(quán)

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點(diǎn)擊下載Chrome瀏覽器
關(guān)閉