当前位置:网站首页>Wechat official account official environment online deployment, third-party public platform access
Wechat official account official environment online deployment, third-party public platform access
2022-07-25 14:30:00 【Code GuWa of the unknown】
Access to third-party platforms , We can solve the problem of traditional wechat official account business development , As for the third-party platform, it helps us centrally manage small programs and wechat official account . In big companies , Different administrator roles manage different roles , The advantage of this is to increase security , The disadvantage is to increase communication costs and operation and maintenance costs .
Let's take a look at our overall architecture
Deployment flowchart :

Business flow chart :
Our business turnaround is mainly aimed at users and customer service , If other businesses are needed .

Detailed description of configuration :
BS01. Official account binding small program
Bind the applet in the background of official account .


BS02. Administrator scanning code binding authorization
Official account administrator scanning code authorization , Add applet binding .

BS03. The applet scans the code to start the search
The applet background turns off the applet search function by default , The applet administrator scanning authorization is required .
BS04. Applet binding
Applet binding requires applet administrator to scan the code , binding .
BS05. The applet turns off search
The applet administrator needs to scan the code to close the applet binding .
BS06. Configure third-party platforms
Login the domain name of the authorization initiation page : Official production environment domain name
Authorization event acceptance configuration :https:// Official domain name /**/**/$APPID$/callback
Message verification Token: ****************************
Message encryption and decryption Key: *******************************
Official account development domain name : Official production environment domain name
White list ip Address : Domain name extranet ip And the service of the intranet ip Address
Official account for authorization testing / Applet : official account id And small program id

The configuration here is the real environment , Hide the coding operation . After configuration, the third-party platform needs to check whether the configuration is correct .
BS07.ip White list configuration
Ip The address requires O & M to provide the deployed service intranet ip And the Internet ip.
![]()
BS08. Network wide release detection
Click the whole network to publish

Network wide release detection

Detection needs 5 minute , There will be a prompt message after completion .

Tiket How can I not receive , Here you need to check the code configuration appid and serkey.
BS09. Check the configuration
If not received normally tiket Need to check , Check the configuration
BS10. Authorized access
https:// Official domain name /auth.html

Scan Authorization :( If there is no QR code , Then the configuration of official account is not authorized )

BS11. Administrator scanning authorization

Authority authorized by the administrator , You need to configure permissions in the third-party platform

Authorized success

BS12. Authorize to view the web page successfully
Our authorization interface will return a status code , This interface is a callback interface written by ourselves .
Interface query cache : Here we can query the cached interface through the interface , Whether cache succeeded token Information, etc .
http://api Interface query

If the cache is returned, our configuration is all successful .
BS13. Wechat official account menu button configuration
Click the button to get the wechat official account menu key.
Here we can use wechat official account appid And encryption key Go to query the menu event information .

https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token=
{
"is_menu_open": 1,
"selfmenu_info": {
"button": [
{
"type": "click",
"name": " Custom menu ",
"key": "V1001_TODAY_MUSIC"
},
{
"name": " menu ",
"sub_button": {
"list": [
{
"type": "view",
"name": " Custom menu ",
"url": "http://www.soso.com/"
},
{
"type": "click",
"name": " video ",
"key": "V1001_GOOD2"
},
{
"type": "click",
"name": " Customer service ",
"key": "V1001_GOOD"
}
]
}
}
]
}
}BS14. Configuration release
Configure wechat official account to the menu key Configure to publish in the registry .
We need to configure the click event button to monitor in the code , Our entire deployment is complete , If you need other businesses to turn around, you need to configure others , Overall configuration parameters and information , Is the same , We only need to obtain the permission of wechat official account through a third-party platform token You can realize the business of wechat official account , Because the wechat official account was obtained through code scanning authorization id, Wechat third-party platform passed comment_token Go to get permission refresh token, Wechat official account Authority token Need to refresh , So we need to configure scheduled tasks to update the cache .
The above is the whole deployment process and steps .
It's on paper , True knowledge comes from practice !!!
边栏推荐
- Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
- Doris学习笔记之与其他系统集成
- The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
- Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
- Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
- GameFramework制作游戏(一)
- maya建模练习
- 国联证券买股票开户安全吗?
- 为什么中建、中铁都需要这本证书?究竟是什么原因?
- Typora cannot open the prompt to install a new version solution
猜你喜欢

关于ROS2安装connext RMW的进度条卡在13%问题的解决办法

PHP website design ideas

Can the variable name be in Chinese? Directly fooled people

Deep understanding of pytorch distributed parallel processing tool DDP -- starting from bugs in engineering practice

From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part I)

Okaleido ecological core equity Oka, all in fusion mining mode

Realize a family security and environmental monitoring system (I)

Alibaba cloud installs mysql5.7

苹果官网产品打折 买iPhone 13 Pro Max 可省600元

Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation
随机推荐
Cologne new energy IPO was terminated: the advanced manufacturing and Zhanxin fund to be raised is the shareholder
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount
【cartographer_ros】八: 官方Demo参数配置和效果
Sqli labs installation environment: ubuntu18 php7
C language and SQL Server database technology
AI model risk assessment Part 1: motivation
Xintang nuc980 set DHCP or static IP
GameFramework制作游戏(二)制作UI界面
filters获取data中的数据;filters使用data中的数据
Vs2017 large factory ERP management system source code factory general ERP source code
Famous handwritten note taking software recruit CTO · coordinate Shenzhen
Melodic + Realsense D435i 配置及错误问题解决
Go语言创始人从Google离职
opencv视频跟踪「建议收藏」
结构体大小
国联证券买股票开户安全吗?
OverTheWire-Bandit
QObject source code analysis -d pointer and Q pointer
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】