当前位置:网站首页>Wechat applet subscription message development process
Wechat applet subscription message development process
2022-07-24 08:10:00 【longlongValue】
Wechat applet subscription message development process
Preface
Official account is divided into subscription number and service number :
The subscription number is daily 1 Time , But it will be hidden in the subscription column , There will be no digital notifications ;
The service number is monthly 4 Time , You can have digital notifications like friend messages . In addition, there is a template message for the service number , It can be used for official account to send important service notices to users , The maximum daily call is 10 Ten thousand times .The message notification of the applet also has the subscription function : Reference material
One time subscription : A call can be subscribed to at most 3 Bar message .
Permanent subscription : After the user subscribes once , Developers can send multiple messages over a long period of time . At present, long-term subscription information is only for government affairs and people's livelihood 、 Medical care 、 traffic 、 Finance 、 Education and other offline public services are open .
Environmental Science
- Wechat applet
- WeChat public platform
- JAVA The backend development
WeChat public platform
Login applet , Select subscribe message and subscribe 
Then select a one-time subscription message ( Permanent subscription is not easy to apply ). Be careful , When selecting a subscription message from the one-time subscription message template , The subscription message template you can search and see is related to the applet category you log in , The category setting position is shown in the figure below .
When you choose the right template , Put the template's ID To the back end , In addition, there is the detailed content field under the template . Here's the picture ( Click on my template -> details )
Because my template is obtained through the back-end interface , So my template can be modified after it goes online ? I haven't tried , But theoretically, it works .
JAVA
Because our backend needs to count the templates agreed by users , If you don't agree, don't send the notice . The options considered at that time were 2
- The front end gets the results from the callback method of wechat and uploads them to the back end through the interface
- The back end is directly connected to wechat , adopt Subscribe to message event push To obtain user authorization
Through the unremitting struggle of the front end ( Secondary reusability 、 Expansibility and reliability, etc., and sufficient deception ability ), Decide to adopt the scheme 2. But there is a problem in the process of docking . Errors are always reported when submitting 
In the development and management of small programs -> Development and setup -> Message push , When configuring information, put the file under the corresponding domain name as required, but it still fails . Asked about the background development , It is said that you have accepted the message push as required Post Method . Wechat has no detailed explanation in this regard , You can only go to Baidu Google to find experience .
I happened to see a tree planted by my predecessors in the same pit , At first glance, it looks cool , Hide ~
Wechat will send a get Request to do an authentication on the submitted server address , Indicates that the address is valid and legal . But our server only does post Message receiving request , Didn't do get request , Therefore, wechat authentication is not passed when submitting , It is understandable to report failure . Immediately notify the backend ~ Do it quickly , Sit back and wait for
After the back-end developers work overtime ( No signature verification , Go straight back to echostr, This field must be returned as is , Otherwise, the verification may fail due to the wrong type ) after , Configuration is successful !
Test the following 
Successfully configured 
The back-end code is also attached
link : https://pan.baidu.com/s/1n9X6ss1jGqXvPn7zSyUJZg Extraction code : htc3
边栏推荐
- Hegong sky team vision training day4 - traditional vision, contour recognition
- SVG 从入门到后悔,怎么不早点学起来(图解版)
- Figure New Earth: how to import CAD files with modified elevation datum (ellipsoid)
- Database system - Basic Concepts
- 学习-用do…while循环按公式e=1+1/1!+1/2!+1/3!+…+1/n!计算 e 的值(精度为 1e-6)
- Learn - use do... While loop according to the formula e=1+1/1+ 1/2!+ 1/3!+…+ 1/n! Calculate the value of E (accuracy is 1e-6)
- Detailed explanation of VAO
- Debug No4 use renderdoc to troubleshoot bugs
- P1135 奇怪的电梯题解
- Introduction of some functions or methods in DGL Library
猜你喜欢

Debug NO2 check for errors according to the process

EZDML逆向工程导入数据库分析实操教程

When does MySQL use table locks and row locks?

Vidar-Team战队专访:AS WE DO, AS YOU KNOW.

图新地球:如何导入修改了高程基准(椭球)的CAD文件

赛宁TechTalk丨攻防演练:攻击组合拳 “稳准狠”渗透

Avoid pitfalls and stay away from PUA in the workplace. You need to know the common routines and scripts of PUA!

Qt|字符串生成二维码功能
![[matlab] (III) application of MATLAB in Higher Mathematics](/img/ff/72b13fb597d5bdf3a989dd86cb6888.png)
[matlab] (III) application of MATLAB in Higher Mathematics

Debug No3 multi texture overlay
随机推荐
Poj3278 catch the cow
[matlab] (III) application of MATLAB in Higher Mathematics
Decision tree - ID3, C4.5, cart
*Code understanding *numpy basic (plus code) that must be understood
Solve the problem that Anaconda navigator cannot be opened
Opencv project - credit card recognition (learning record)
Saining Techtalk attack and defense drill: attack combination fist "stable, accurate and ruthless" penetration
[golang from introduction to practice] student achievement management system
POJ3278抓住那头牛题解
(dkby) DFL learning notes
NFT概念究竟是怎么回事。。全面了解NFT市场、技术和案例
Detailed notes on pytoch building neural network
CNN-VINS
abstract class
Crypto bear market: some people expand on a large scale, some layoffs shrink
Avoid pitfalls and stay away from PUA in the workplace. You need to know the common routines and scripts of PUA!
Error reported by Nacos: error Nacos failed to start, please see d:\nacos\logs\nacos log for more details.
Uva572 oil deposits problem solution
[Linux] Oracle VirtualBox installation CentOS 8
Introduction of some functions or methods in DGL Library