asp.net development of WeChat public platform (6) stage summary, service construction, access

高洛峰
Release: 2017-02-23 14:21:13
Original
1676 people have browsed it

After the first 5 articles, if you follow step by step, anyone can build a framework that can handle various WeChat messages. Let’s summarize the most easily overlooked problems:

1. In text messages You can use the newline character \n;

2. We don’t need to worry about the long integer time included in the message sent by WeChat, just return it as it is;

3. Text message The length is limited, the longest is 2048 bytes. Note that it is bytes, not the number of words. In actual use, there is no need to ask how many words it should be. You should think about the maximum number of words if it is used as a text message on a mobile phone. Users will not be disgusted by a single word, but it will be uncomfortable if it is up to 500 words. No matter how long it is, you should consider using graphic messages to allow users to click and read the long article;

4. Send it via WeChat The message is UTF-8 encoded, and the WeChat server also uses UTF-8 encoding when processing the message you return, so the returned message after you receive and process it must be UTF-8 encoded. Many people encounter garbled code problems because the encoding is not correct. Unification;

Let’s summarize these questions first. Next, let’s talk about the access to WeChat public platform. After applying for an account on WeChat public platform, select the development mode in the function on the left menu---Advanced function and fill in your After entering the domain name address of the server and a Token, click OK. WeChat will send a request to the address you filled in. If you can return the result correctly, the verification is passed, and the official account will officially open the development mode. What you access through WeChat is equivalent to you. Home page of the website. I will provide a demo in the next article. Next time, I will throw it on the server and configure IIS to see the results directly.

asp.net development of WeChat public platform (6) stage summary, service construction, access


For more asp.net development WeChat public platform (6) stage summary, service construction, and access related articles, please pay attention to PHP Chinese net!


Related labels:
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!