当前位置:网站首页>小程序如何关联微信小程序二维码,实现二码聚合
小程序如何关联微信小程序二维码,实现二码聚合
2022-06-26 05:42:00 【Finbird】
相信大家在停车场遇到过这样的场景,在停车场入场和出场时,不管我们是用微信还是支付宝,只需台扫同一个二维码,自动识别打开各端小程序,并带入参数停车场id和通道id。
这种方式一般统称为二维码聚合或者说是“一码通”能力,特别是微信和支付宝这个超级 App 各自为营,都拥有海量的用户群体和海量的小程序,用户扫描二维码的 App 可能是两者中的任何一个,或者多个 App 中的任何一个,这时候用户扫描同一个二维码可根据 App 自行打开所属平台的小程序就显得非常重要了。
二维码聚合的方式
1、关联普通链接方式打开小程序
普通二维码是指开发者使用工具对网页链接进行编码后生成的二维码。
开发者可不需更换线下二维码,通过在小程序后台设置关联规则,将原线下普通二维码的地址与小程序页面关联,用户用任意一个 App 扫描该地址的普通二维码即可打开小程序并跳转到指定页面。
这种方式整个流程会比较繁琐,但也是大部分开发者首选的方法。仅以支付宝为例,如果要兼容微信二维码非常麻烦,要历经至少7个步骤,而且还需要动到代码。
如果希望自己的 App 能够运行小程序,而且里面的小程序能和微信小程序使用同一个二维码,这时候就有更方便的办法。只需在自己的 App 中集成 FinClip SDK 便拥有小程序运行能力,接下来通过绑定二维码的方式便可以让自己的 App 扫描微信小程序二维码打开自己 App 中的小程序。
2、关联微信小程序二维码
第一步:
登录 FinClip 管理后台
第二步:
在“小程序管理中”找到:我的小程序>>小程序详情>>第三方管理。
第三步:
点击“新增二维码关联”,按要求填写“微信小程序 APP ID”、“微信小程序 APP Secret”、“微信小程序页面路径及参数”。
完成此步后大功告成,小程序生成的二维码既可以使用微信扫一扫打开,也可以使用 FinClip App 或自有 App 扫码打开。
此外 FinClip 也可以在不用动代码的条件下实现小程序复用微信登录的能力,方式与关联微信小程序二维码一致。
以上就是小程序二维码聚合或“一码通”能力最便捷的方式了,希望这个教程能有效帮助小程序开发者更便捷地兼容线下已有的微信二维码,实现线上线下联动高效推广小程序。
边栏推荐
- 虚拟项目失败感想
- Lesson 4 serial port and clock
- Supplementary course on basic knowledge of IM development (II): how to design a server-side storage architecture for a large number of image files?
- data = self._ data_ queue. get(timeout=timeout)
- June 3 is a happy day
- Consul服务注册与发现
- 适配器模式
- bingc(继承)
- The State Council issued a document to improve the application of identity authentication and electronic seals, and strengthen the construction of Digital Government
- LeetCode_ Binary search tree_ Simple_ 108. convert an ordered array to a binary search tree
猜你喜欢
Pytorch (network model training)
[upsampling method opencv interpolation]
操作符的优先级、结合性、是否控制求值顺序【详解】
Consul服务注册与发现
uniCloud云开发获取小程序用户openid
pytorch(环境、tensorboard、transforms、torchvision、dataloader)
【ARM】在NUC977上搭建基于boa的嵌入式web服务器
Wechat team sharing: technical decryption behind wechat's 100 million daily real-time audio and video chats
Bingc (inheritance)
pytorch(网络模型训练)
随机推荐
Pytorch (environment, tensorboard, transforms, torchvision, dataloader)
MySQL source code reading (II) login connection debugging
Old love letters
基于SDN的DDoS攻击缓解
A love that never leaves
A new explanation of tcp/ip five layer protocol model
自定义WebSerivce作为代理解决SilverLight跨域调用WebService问题
LeetCode_ Binary search tree_ Simple_ 108. convert an ordered array to a binary search tree
data = self._ data_ queue. get(timeout=timeout)
There are applications related to web network request API in MATLAB (under update)
CMakeLists. txt Template
About abstact and virtual
5分钟包你学会正则表达式
Pytorch (network model)
Lesson 4 serial port and clock
What management systems (Updates) for things like this
skimage. morphology. medial_ axis
uniCloud云开发获取小程序用户openid
Something about MariaDB
Redis usage and memory optimization