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
Information flow advertising style - Post-feed pa...
Samsung has confirmed that it will sell refurbish...
The two most important conferences in the mobile ...
Get started! Baidu's new way to dominate the ...
1. Xianyu account It is actually very easy to reg...
There are actually not many e-commerce opportunit...
Zigong movie applet development price 1. Display ...
1. The "U" of a server is a unit that r...
Author: Li Chuanfu Shi Xiangqi With the rapid dev...
Recently, various niche fruits have become popula...
In the blink of an eye, the mobile Internet has b...
"Far and away from faith." Recently, a ...
Many people gain weight during the holidays. Afte...
After a website is built, its ranking will direct...
There is no need to say much about the power of t...