In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what matters needing attention in sending template messages in WeChat Mini Programs. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Send template message in WeChat Mini Programs
The implementation logic is divided into:
1. Get access_token
2. Send template messages (including user's openid, template's template_id, user-triggered form form_id or payment's pre-prepay_id)
Note:
1. The user's openid is obtained through user authorization.
2. The template_id of the template is viewed from the "template message" of the public platform of Mini programs.
3. The from_id of the form is obtained from the report-submit= "true" in the form submission event triggered by the user. If the user payment message is sent, the value can be the pre-pay _ id that places the order payment.
Error return code Note: errcode:41028,errmsg: "invalid form id hint: [YVJBEA0597ge21]"
There are several situations in which this error is reported:
1. If it is found that the value of form_id is "the formId is a mock one", it means that it is not tested on the real machine, but needs to be tested on the real machine.
2. The user who triggered the confirmation event is not the same as the user who sent the message.
3. The prepaid user is not the same as the user who sent the message.
This is the end of the article on "what are the precautions for sending template messages in WeChat Mini Programs". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.