当前位置:网站首页>【微信小程序】接口生成自定义首页二维码
【微信小程序】接口生成自定义首页二维码
2022-07-29 09:38:00 【能能爱编程】
1、背景
在原有小程序上开发了一个新的功能,需要整合首页。但是为了不影响原有业务,且能测试新功能。所以需要新生成一个二维码,用户扫描该二维码可以跳转到新功能的页面。
2、方法
2.1生成二维码的接口:获取小程序二维码 | 微信开放文档微信开发者平台文档https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/qr-code/createQRCode.html按照该接口入参,通过postman调用该接口即可生成所需二维码。
2.2生成access_token的接口
第一步:获取access_token

第二步:获取二维码


第三步:保存二维码
点击右下角红框位置,即可将生成的二维码图片保存下来。

20220728补充:
获取二维码的接口需要在url处添加access_token,否则会报错


边栏推荐
- redis命令[逐渐完善]
- Div horizontal layout aligned on both sides
- What kind of framework is friendly to developers?
- Study and exploration of Redux API implementation of Redux
- [Yunzhu co creation] [hcsd live broadcast] teach the interview tips of big companies in person
- WebAssembly 2022 问卷调查结果新鲜出炉
- Custom configuration
- 网络安全(6)
- Sublime Text3 设置不同文件不同缩进
- Network security (6)
猜你喜欢

【C语言】三子棋(智能下棋 + 阻拦玩家)

当 update 修改数据与原数据相同时会被更新吗?

云原生管理实践:业务引领的DevOps持续交付体系

Opencv introductory basic learning
![[Apple Developer account]06 after transferring the developer account, the annual fee of the developer is automatically renewed](/img/a7/12fd63f16ebca81a3dd2d1b97847d1.png)
[Apple Developer account]06 after transferring the developer account, the annual fee of the developer is automatically renewed

QoS服务质量五QoS边界行为之流量整形

Evaluation index of machine learning classification model and implementation of sklearn code

使用cpolar发布树莓派网页(cpolar隧道的完善)

OpenCV图像处理基础操作

No swagger, what do I use?
随机推荐
PyQt5快速开发与实战 6.4 QBoxLayout(框布局)
深入浅出依赖注入及其在抖音直播中的应用
[machine learning] logistic regression code exercise
Gao Zhiwei: data management enables the digital transformation of the transportation industry
常用的DOS命令[逐渐完善]
Youboxun, the gold donor of the open atom open source foundation, joined hands with partners to help openharmony break the circle!
How to export the old and new file names and locations to excel after file renaming
机器学习之线性回归(最小二乘法手写+sklearn实现)
Anfulai embedded weekly report no. 273: 2022.07.04--2022.07.10
C语言的传参方式(int x)(int *x)(int &x)
[centralized training] hcip cloud computing resource exchange post
手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践
36. JS动画
网络安全(5)
【C语言】三子棋(智能下棋 + 阻拦玩家)
Pyqt5 rapid development and practice 6.1 three dimensions of good software & 6.2 layout management in pyqt5 & 6.3 absolute location layout of pyqt5
System architect learning
In simple terms, dependency injection and its application in Tiktok live broadcast
网络安全(6)
Shutter -- use camera (continuously updating)