当前位置:网站首页>Wechat official account debugging and natapp environment building

Wechat official account debugging and natapp environment building

2022-06-24 15:54:00 Sweeping floor

   Originally used Ngrok Extranet mapping tool , However, the interface configuration information in wechat official account test number management always fails to be configured . After searching the data, we finally choose Natapp. Wechat official account test source code reference [1][2], Just put [3] Medium Ngrok Replace with Natapp. Next, let's focus on Natapp Configuration process .

One .Natapp The configuration process

1.Natapp register

The introduction to the registration process is omitted , It mainly needs real name authentication .

2.Natapp To configure

Click to buy tunnel -> Free Tunnel : Configure free tunnel :

3. start-up Natapp

./natapp -authtoken yourauthtoken

After startup, it is shown as follows :

Two . Test number configuration process

1. The back-end program starts

take [2] After the server back-end program runs , As shown below :

2. Test number management [ Test environment ]

Open the test number management page [5], First scan the code , Then configure the interface information and domain name :

3. Official account configuration [ Production environment ]

The basic configuration information of the official account refers to the server back-end configuration :

3、 ... and . The official account is tested

1. Send a text message

2. Corresponding code location

In addition to sending text messages , You can also customize the development of sending images 、 video 、 Audio 、 Location 、 Files, etc . thus , The test and development environment of wechat official account has been set up , The wechat official account can be developed and debugged happily .

reference :
[1]1 Classes ,2 A way ,3 Sentence code , Complete the minimalist process of WeChat official account development :https://www.cnblogs.com/szw/p/wecaht-minimization-example.html
[2]JeffreySu/Senparc.Weixin.Samples:https://github.com/JeffreySu/Senparc.Weixin.Samples
[3] Network penetration test WeChat official account in development environment :https://www.cnblogs.com/szw/p/Intranet-debugging-wechat.html
[4]Natapp:https://natapp.cn/
[5] Test number management page :https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index

原网站

版权声明
本文为[Sweeping floor]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241431470091.html