10 recommended articles about events of concern

黄舟
Release: 2017-06-11 09:38:20
Original
2036 people have browsed it

As mentioned in the previous blog post, WeChat messages can be roughly divided into two types. One is ordinary messages including text, voice, pictures, etc., and the other is the event type to be described in this article. . Including: following/unfollowing events, scanning QR code events with parameters, reporting geographical location events, custom menu-related events, etc. This article explains them one by one. As mentioned in the previous article, if the WeChat server does not receive a response within 5 seconds, it will disconnect the connection and reinitiate the request, retrying three times in total. In this case, the problem arises. There is a scenario: when a user follows a WeChat account, the current user information is obtained, and then the information is written to the database. Similar to registration on PC website. Perhaps because of this concern, the business logic we need to handle is relatively complex. Such as sending points, writing user logs, and assigning user groups. Wait... A series of logic needs to be executed, or the network environment is relatively complex and there is no guarantee that the current user's operation will be responded to within 5 seconds. Then if the operation is not completed yet, the WeChat server pushes the same attention event to our server. We will execute our logic again, which may lead to duplicate data in the database (some children's shoes will say, I am inserting data

1. About message rowing Recommended articles

10 recommended articles about events of concern

## Introduction: As mentioned in the previous blog post, WeChat messages can They are roughly divided into two types, one is ordinary messages including text, voice, pictures, etc., and the other is the event type to be covered in this article, including: follow/unfollow events and scan QR code events with parameters. , reporting geographical location events, custom menu-related events, etc. This article will explain them one by one. As mentioned in the previous article, the WeChat server will disconnect the connection if it does not receive a response within 5 seconds, and will reinitiate the request and retry in total. Three times. In this case, the problem arises. There is a scenario: when the user follows the WeChat account, the current user information is obtained, and then...

##2.

WeChat Development Receiving event push and message deduplication

10 recommended articles about events of concern##Introduction: As mentioned in the previous blog post, WeChat messages can be roughly divided into two types, one is ordinary messages including text, voice, pictures, etc., and the other is the event type to be covered in this article including: follow/unfollow events, scanning with parameters. QR code events, reporting geographical location events, custom menu related events, etc. This article will explain them one by one

#3. EventKey’s subscribe event example

10 recommended articles about events of concernIntroduction: If the user has ever made a payment in this official account, the EventKey will contain the last transaction when paying attention. Order number, such as last_trade_no_4002752001201704258347703919

##4. WeChat public platform message interface development from Hello2BizUser text to subscribe event

#Introduction: In the old follow-up event, after the user follows the WeChat public platform account, the system will help the user send a Hello2BizUser text to the public account. In the public account background development mode Send the welcome message by judging the word Hello2BizUser 10 recommended articles about events of concern

##5.

asp.net develops WeChat public platform (5) WeChat graphic message

Introduction: The previous article has successfully responded to the event of concern and also realized the sending of text messages. This article starts the processing of graphic and text messages, WeChat The most commonly used message type in mobile phones is graphic messages, because they can best express information with both pictures and text. The interface definition of graphic messages in WeChat is as follows: 10 recommended articles about events of concern

6.

asp.net develops WeChat public platform (4) Pay attention to events, user records, and reply to text messages

10 recommended articles about events of concern

Introduction: In the previous article, all messages have been encapsulated and processed in their own ways. This article starts with the first step of using it-pay attention. , record messages after following, and reply text messages to users at the same time. The following method is: DoSub. In addition, new users scan the QR code with parameters to follow the method: DoCodeNotSub.

7. How to develop follow and unfollow events on WeChat public platform, public platform_PHP tutorial

Introduction : WeChat public platform develops methods for following and unfollowing events, public platform. Methods for developing follow and unfollow events on the WeChat public platform, public platform This article describes an example of how to develop follow and unfollow events on the WeChat public platform. Share it with everyone

8. WeChat public platform develops methods for following and unfollowing events, public platform

# #Introduction: WeChat public platform develops methods for following and unfollowing events, public platform. Methods for developing follow and unfollow events on the WeChat public platform, public platform This article describes the method for developing follow and unfollow events on the WeChat public platform. Share it with everyone

9. WeChat public platform development follow/unfollow events

Introduction: User When following or unfollowing a public account, WeChat will push this event to the URL filled in by the developer. It is convenient for developers to send welcome messages to users or unbind accounts. The following is an example of following and unfollowing on the WeChat public platform

10. How to develop following and unfollowing events on the WeChat public platform

Introduction: This article mainly introduces the method of developing follow and unfollow events on the WeChat public platform. It analyzes in detail the techniques for setting up follow on the WeChat public platform, and comes with a description of the relevant parameters, which has certain reference. For reference value, please

[Related Q&A recommendations]:

java - springmvc How to configure the WeChat public account server controller.

php - The XML data Eventkey returned by WeChat follow event push is empty

About developers generating QR codes with parameters and scanning question.

javascript - Regarding the problem of developers generating QR codes with parameters and scanning.

java - About WeChat development—automatically reply to messages after following the issue

The above is the detailed content of 10 recommended articles about events of concern. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!