From oral messages, letters, telecommunications to WeChat, the method of communication is no longer an obstacle to communication. As a giant product of mobile Internet, WeChat has become a marketing method that can no longer be ignored. WeChat marketing has reached a stage where if you don’t enter, you are likely to be eliminated by the times. Many APP developers are also committed to the research of WeChat public platform, and when developing platform authentication, they must pass port 80 authentication. However, the company's port 80 is currently blocked. We could have used VPS for authentication, but in the end we felt that it was easiest to debug directly locally during development. Therefore, we chose the Peanut Shell intranet version, which supports port 80 penetration. As shown below, the entire configuration process, from setting up the local environment to WeChat development platform authentication, can be completed quickly in just three steps. Step 1: Build a local development environment 1. Install the development environment: Use XAMPP to complete the construction of the PHP+MYSQL basic development environment; 2. WeChat authentication code: Write relevant tests to prepare for the third step of authentication (the code is the DEMO code provided by the official, which is very convenient to use during authentication). Step 2: Configure Peanut Shell port mapping 1. Go to the official website of Peanut Shell (http://hsk.oray.com/) to download Peanut Shell 3 and complete the installation; 2. Click on the intranet mapping to jump to the settings page; 3. Click [Intranet Mapping]--[Add Mapping], and the port mapping setting box will pop up; 4. Configure port mapping as shown in the figure, customize the application name, the intranet host is the intranet IP of the development machine, HTTP uses port 80 by default, remember to select the external network port as "HTTP port 80"; After the configuration is completed, you can access port 80 of the local machine by directly entering the xxxxx.cicp.net domain name assigned by Peanut Shell in the browser. Step 3: WeChat public platform authentication Log in to the WeChat public platform and configure the server in the [Developer Center] as shown in the figure, and the whole operation is completed. PS: Token needs to be consistent with the seventh line of the DEMO code, otherwise an error will be prompted. At this point, the construction of the WeChat development platform is completed. With the development of mobile Internet, independent text and voice communications will inevitably be integrated into social communication platforms. WeChat open platform actually plays a role in collecting third-party content, promoting user sharing and activeness, and forming a mainstream online and offline WeChat interactive marketing method. As for the next development of WeChat, it is very likely to evolve into a private life service platform. Applications such as micro malls, micro hotels, micro restaurants, micro payments, micro crowdfunding, etc. have been quietly changing people's lifestyles. People have never felt that mobile Internet is so close to us. |
<<: Centimeters Footprint Sunqiao: Create quality outsourcing with freelancers
>>: The Lanzhou server next to the company crashed again
Apple has always liked to create new standards on...
At the beginning of this year, the cultural and t...
This article will help you build the system outli...
Today, I will also share with you my experience o...
During the Spring Festival, major Internet platfo...
Compiled by: Gong Zixin Obesity is a significant ...
In the new consumption era, when brands are faced...
A long time ago, there were two neighboring but i...
Scientists have long been exploring the mysteries...
The epidemic continues in various places This gav...
I really admire these rumor mongers! They are uny...
This article introduces four strategies for plann...
"Gobi Pioneer", this is what Zheng Ming...
How to maintain and increase activity and improve...
Introduction: Generating traffic and users is not...