当前位置:网站首页>【微信小程序】接口生成自定义首页二维码
【微信小程序】接口生成自定义首页二维码
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,否则会报错


边栏推荐
- First order traversal / second order traversal determines the approximate shape of the tree
- (Video + graphics) introduction to machine learning series - Chapter 1 Introduction
- 《LOL》从代码上来说最难的是哪个英雄?
- 原型链继承和构造函数继承的 “毛病”
- 查看端口占用情况
- QoS服务质量五QoS边界行为之流量整形
- PyQt5快速开发与实战 6.5 QGridLayout(网格布局)
- 40余岁的边缘老技术,是未来乏力还是掘地而起?
- [machine learning] logistic regression code exercise
- Cloud native management practice: business led Devops continuous delivery system
猜你喜欢

Unity 引导系统.点击目标物体后提示文字变色进入下一步

文件重命名后,怎样将新旧文件名及所在位置导出到excel

First order traversal / second order traversal determines the approximate shape of the tree

Discussion on the integration of storage and calculation and the calculation in storage

Virtual machines use host graphics cards (Hyper-V and wsl2)

i.MX6ULL驱动开发 | 32 - 手动编写一个虚拟网卡设备

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

手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践

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

先序遍历/后序遍历确定树的大致形态
随机推荐
36. JS动画
Configuration file settings for remote connection to Windows version server redis
Solve the problem of reading data garbled by redis visualization tool
OpenCV入门基础学习
Trie树(字典树)讲解
网络安全(5)
Detailed explanation: what is the GPS Beidou time service server?
SiC Power Semiconductor Industry Summit Forum successfully held
Logistic regression of machine learning
Senparc.Weixin.Sample.MP源码剖析
Dynamics 365Online 如何自定义商机关闭窗体
基于ArkUI eTS开发的坚果新闻(NutNews)
深入浅出依赖注入及其在抖音直播中的应用
怎么样的框架对于开发者是友好的?
PyQt5快速开发与实战 6.4 QBoxLayout(框布局)
In simple terms, dependency injection and its application in Tiktok live broadcast
Shutter -- use camera (continuously updating)
NFA determination and DFA minimization based on C language
Unity3d空包打apk报错汇总
Youboxun, the gold donor of the open atom open source foundation, joined hands with partners to help openharmony break the circle!