search
HomeWeChat AppletWeChat DevelopmentWeChat development can debug the interface locally

Foreword:

This article summarizes some quick steps taken to facilitate development when developing WeChat interfaces, which has saved developers difficult development time and improved development efficiency.

Local test:

(Reminder, comment out the verification parameters when simulating WeChat get or post data locally)

Use WeChat simulator weixinPost to simulate sending xml Data

Since this software was released when WeChat did not disclose the high-level interface, so for the debugging of the high-level interface, the author used Fiddler, a packet capture tool, to simulate the post data

High-end test:

Use the reverse proxy software ngrok to access local projects:

ngrok is a reverse proxy that establishes a ## between a public endpoint and a locally running Web server. #Secure channel. (Wikipedia and Baidu Encyclopedia have no explanation for this software yet)

The author uses windows as an example to explain:

1. Software download address: ngrok. com/download

2. Register an account on the website to obtain authtoken

After successful registration, below:

The author placed the downloaded ngrok on the d drive

Next, enter the cmd command into ngrok

The following interface will appear, indicating that the authtoken setting is successful. Press CTRL+C to return:

Next, enter the following command line to set the domain name prefix mynawechat:

After the setting is successful, the display is as follows

The test in the project is as follows:

The test is successful! ! !

In this way, you can directly access the local project when developing

WeChat project, eliminating the time-consuming step of copying the running project to the server and then restarting the service on the server. .

【Related recommendations】

1.

WeChat public account platform source code download

2.

Alizi order system source code

The above is the detailed content of WeChat development can debug the interface locally. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version