当前位置:网站首页>【微信小程序】接口生成自定义首页二维码
【微信小程序】接口生成自定义首页二维码
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,否则会报错
边栏推荐
- QoS服务质量五QoS边界行为之流量整形
- Study and exploration of Redux API implementation of Redux
- In simple terms, dependency injection and its application in Tiktok live broadcast
- MySQL converts some table names to uppercase
- Div horizontal arrangement
- 36. JS animation
- SiC功率半导体产业高峰论坛成功举办
- Virtual machines use host graphics cards (Hyper-V and wsl2)
- OpenCV入门基础学习
- 核酸扫码登记体验有感(如何提高OCR的文字正确识别率)
猜你喜欢
Custom configuration
Unity xchart3.0 basic usage quick start
23 postgraduate entrance examination people hold on! The first wave of exam abandonment peak has arrived!
Unity3d空包打apk报错汇总
Use cpolar to publish raspberry pie web pages (improvement of cpolar tunnel)
How to export the old and new file names and locations to excel after file renaming
NFA determination and DFA minimization based on C language
[Bert multi label text classification practice] I - overview of practical projects
查看端口占用情况
Qmainwindow details
随机推荐
On contract testing
User identity identification and account system practice
Summary of pit trampling records and solutions of data warehouse project
Pyqt5 rapid development and practice 6.5 qgridlayout (grid layout)
C# 值类型和引用类型讲解
2021年CS保研经历(四):西交软院预推免、信工所三室预推免
Sample is new and supported from API 8! Come and take it
《UnityShader入门精要》总结(2):初级篇
数据可视化的利器-Seaborn简易入门
原型链继承和构造函数继承的 “毛病”
redis可视化工具读取数据乱码问题解决
如何介绍自己的项目经验?
Unity3d空包打apk报错汇总
Dynamics 365Online 如何自定义商机关闭窗体
Which hero is the most difficult for lol in terms of code?
Libyuv module
What kind of framework is friendly to developers?
[centralized training] hcip cloud computing resource exchange post
Flutter文本编辑器
i.MX6ULL驱动开发 | 32 - 手动编写一个虚拟网卡设备