4

微信公众平台获取网页授权(测试号)

 3 years ago
source link: http://abcdxyzk.github.io/blog/2021/04/18/lang-web-wx2/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

微信公众平台获取网页授权(测试号)

2021-04-18 16:29:00

https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html

https://blog.csdn.net/luopotaotao/article/details/50611317

1.登陆微信公众号后台,左下角找到

2.进入之后,会看到测试号的一些基本信息,用你的微信号扫描二维码关注测试号

3.网页账号权限处,右侧点击修改,此处填入你的网页域名

确认之后,后台配置就完成了,此时,再按照微信开发者文档中所写的流程便可正确获得授权,跳转到你的网页了.

后台获取到code,向微信服务器交换到openId,可以将该openId放到当前request的session中,此时用户在你开发的页面上的操作,都可以用session中的openId来确定用户了

Posted by kk

2021-04-18 16:29:00language, web

« 微信公众号自定义菜单 微信公众号获取OpenId(未授权)(需要关注公众号) »


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK