12_WeChat project development 04_Process design of message processing

The main contents of this chapter are as follows:

1. The user clicks the click event of the menu or enters text information, and this information is pushed to the WeChat public platform. The WeChat public platform packages it into xml and submits it to the post method in the url of the developer configured on the WeChat public platform.

2. The developer project accepts the message through the post method of the url configured on the WeChat public platform, converts the xml message into a map, and processes it. After the processing is completed, the processed map message is converted into xml and pushed to the WeChat public platform. .

3. The WeChat public platform pushes the message returned by the developer to the user.

Notice:

User-submitted messages are responded to passively, so the user submits and returns to the user in a request and response.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326445377&siteId=291194637