当前位置:网站首页>微信公众号正式环境上线部署,第三方公众平台接入
微信公众号正式环境上线部署,第三方公众平台接入
2022-07-25 14:29:00 【无名之辈之码谷娃】
对于第三方平台的接入,我们可以传统的微信公众号业务拓展问题,至于第三方平台就是帮我们集中管理小程序和微信公众号。在大公司当中,不同的管理员角色管理不同的角色,这样好处是能够增加安全性,缺点就是增加沟通成本和运维成本。
下面来看看我们整体架构
部署流程图:

业务流程图:
我们业务扭转主要是针对用户和客服,如果需要其他业务一样。

配置详细描述:
BS01.公众号绑定小程序
在公众号后台绑定小程序。


BS02.管理员扫码绑定授权
公众号管理员扫码授权,新增小程序绑定。

BS03.小程序扫码开启搜索
小程序后台默认关闭小程序搜索功能,需要小程序管理员扫码授权。
BS04.小程序绑定
小程序绑定需要小程序管理员扫码,绑定。
BS05.小程序关闭搜索
小程序绑定关闭需要小程序管理员扫码。
BS06.配置第三方平台
登录授权发起页域名:正式生产环境域名
授权事件接受配置:https://正式域名/**/**/$APPID$/callback
消息校验Token: ****************************
消息加解密Key: *******************************
公众号开发域名:正式生产环境域名
白名单ip地址:域名外网ip和内网所在服务的ip地址
授权测试公众号/小程序:公众号id和小程序id

这里配置是真实环境,隐藏打码操作。配置完成第三方平台需要检验配置是否正确。
BS07.ip白名单配置
Ip地址需要运维提供部署后的服务内网ip和外网ip.
![]()
BS08.全网发布检测
点击全网发布

全网发布检测

检测需要5分钟,完成后会有提示信息。

Tiket如何没有正常接收到,这里需要检查代码配置的appid和serkey。
BS09.检查配置
如果没有正常接收到tiket需要排查,检查配置
BS10.授权访问

扫码授权:(如果没有出现二维码,那么公众号的配置是没有获取到授权)

BS11.管理员扫码授权

管理员授权的权限,需要在第三方平台里面配置权限

授权成功

BS12.授权成功查看网页
我们授权接口会返回一个状态码,这个接口是我们自己写的回调接口。
接口查询缓存:这里我们可以通过接口方式查询缓存的接口,是否成功缓存了token信息等。
http://api接口查询

如果返回的有缓存我们的配置就全部成功了。
BS13. 微信公众号菜单按钮配置
获取到微信公众号菜单的点击按钮key。
这里我们可以通过微信公众号的appid和加密key 去查询菜单事件信息。

https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token=
{
"is_menu_open": 1,
"selfmenu_info": {
"button": [
{
"type": "click",
"name": "自定义菜单",
"key": "V1001_TODAY_MUSIC"
},
{
"name": "菜单",
"sub_button": {
"list": [
{
"type": "view",
"name": "自定义菜单",
"url": "http://www.soso.com/"
},
{
"type": "click",
"name": "视频",
"key": "V1001_GOOD2"
},
{
"type": "click",
"name": "客服",
"key": "V1001_GOOD"
}
]
}
}
]
}
}BS14.配置发布
把微信公众号配置菜单key配置到注册中心发布。
我们需要把点击事件的按钮配置到代码里面监听,我们整个部署就完成了,如果需要其他业务扭转就需要配置其他,总体配置参数和信息,都是一样,我们只需要通过第三方平台获取到微信公众号权限token就可以实现微信公众号的业务了,因为通过扫码授权获取到微信公众号的id,微信第三方平台通过comment_token去获取到权限刷新token,微信公众号权限token需要刷新,所以我们需要配置定时任务去更新缓存。
以上就是整个部署流程和步骤。
纸上得来终觉浅,实践出真知!!!
边栏推荐
- The input input box of H5 page pops up the numeric keypad, which needs to support decimal points
- Structure size
- Depth estimation self-monitoring model monodepth2 paper summary and source code analysis [theoretical part]
- Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
- 苹果手机端同步不成功,退出登录,结果再也登录不了
- Throwing OutOfMemoryError “Could not allocate JNI Env“
- Detailed explanation of how R language converts large Excel files into DTA format
- Interpretation of featdepth self-monitoring model for monocular depth estimation (Part 2) -- use of openmmlab framework
- Feiwo technology IPO meeting: annual revenue of 1.13 billion Hunan Cultural Tourism and Yuanli investment are shareholders
- maya建模练习
猜你喜欢

Interpretation of featdepth self-monitoring model for monocular depth estimation (Part I) -- paper understanding and core source code analysis

51单片机学习笔记(1)

~4.1 sword finger offer 05. replace spaces

【MySQL必知必会】触发器 | 权限管理

Typora cannot open the prompt to install a new version solution

A small part is exposed on one or both sides of the swiper

Idea settings ignore file configuration when submitting SVN

Nuc980 set up SSH xshell connection

The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level

Deep understanding of pytorch distributed parallel processing tool DDP -- starting from bugs in engineering practice
随机推荐
Feiwo technology IPO meeting: annual revenue of 1.13 billion Hunan Cultural Tourism and Yuanli investment are shareholders
河源市区推出消防安全主题奶茶 助推夏季火灾防控
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
Idea regular expression replacement (idea regular search)
软件测试 -- 1 软件测试知识大纲梳理
DVWA practice - brute force cracking
Opencv video tracking "suggestions collection"
Jqgrid select all cancel single line click cancel event
The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level
How to design a high concurrency system?
D2. Chopping Carrots (Hard Version) (每日一题)
Structure size
Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
Idea error failed to determine a suitable driver class
Flask SSTI injection learning
Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
Detailed explanation of Telnet remote login AAA mode [Huawei ENSP]
Gateway 网关报错 SERVICE_UNAVAILABLE
Resource not found: rgbd_launch 解决方案
【口才】谈判说服技巧及策略