当前位置:网站首页>微信公众号调试与Natapp环境搭建
微信公众号调试与Natapp环境搭建
2022-06-24 15:34:00 【扫地升】
本来使用的Ngrok外网映射工具,奈何在微信公众号测试号管理中的接口配置信息这一步骤总是配置失败。经过查找资料最终选择Natapp。微信公众号测试源码参考[1][2],只是把[3]中的Ngrok替换为Natapp。接下来重点介绍下Natapp的配置过程。
一.Natapp配置过程
1.Natapp注册
注册过程介绍省略,主要是需要实名认证。
2.Natapp配置
点击购买隧道->免费隧道:
配置免费隧道: 
3.启动Natapp
./natapp -authtoken yourauthtoken
启动后如下所示: 
二.测试号配置过程
1.后端程序启动
将[2]服务器后端程序运行起来后,如下所示: 
2.测试号管理[测试环境]
打开测试号管理页面[5],首先扫码,然后配置接口信息和域名: 
3.公众号配置[生产环境]
公众号基本配置信息参考服务器后端配置: 
三.公众号测试
1.发送文本消息

2.对应的代码位置
除了发送文本消息外,还可以自定义开发发送图像、视频、音频、位置、文件等消息。至此,微信公众号的测试开发环境就搭建完毕,可以愉快的微信公众号开发调试了。
参考文献:
[1]1个类,2个方法,3句代码,完成微信公众号开发的极简流程:https://www.cnblogs.com/szw/p/wecaht-minimization-example.html
[2]JeffreySu/Senparc.Weixin.Samples:https://github.com/JeffreySu/Senparc.Weixin.Samples
[3]在开发环境内网穿透测试微信公众号:https://www.cnblogs.com/szw/p/Intranet-debugging-wechat.html
[4]Natapp:https://natapp.cn/
[5]测试号管理页面:https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index
边栏推荐
- 熬夜整理出的软件测试【高频】面试题大全(2022最新)
- How to use nested tags in thymeleaf3 Tags
- New de debugging
- Poor remote code execution in Alien Swarm
- 几种常见的DoS攻击
- How to build a high-performance go cache Library
- 刚刚阿里面软件测试回来,3+1面任职阿里P7,年薪28*15薪
- great! The novel website project is completely open source
- 运营商5G用户渗透远远比4G慢,5G的普及还得看中国广电
- Tencent cloud native intelligent data Lake Conference will be held, revealing the panoramic matrix of Tencent cloud data Lake products for the first time
猜你喜欢

打破内存墙的新利器成行业“热搜”!持久内存让打工人也能玩转海量数据+高维模型

为什么企业实施WMS仓储管理系统很容易失败

FreeRTOS新建任务不执行问题解决办法

Understanding openstack network

Three solutions for Jenkins image failing to update plug-in Center

The penetration of 5g users of operators is far slower than that of 4G. The popularity of 5g still depends on China Radio and television

Apple is no match for the longest selling mobile phone made in China, and has finally brought back the face of the domestic mobile phone

Nifi from introduction to practice (nanny level tutorial) - environment

Wi-Fi 7 来啦,它到底有多强?

设备通过国标GB28181接入EasyCVR平台,出现断流情况该如何解决?
随机推荐
nifi从入门到实战(保姆级教程)——环境篇
Cloud + community [play with Tencent cloud] essay solicitation activity winners announced
Vim编辑器的最常用的用法
Leetcode 139. Mot break word Split (medium)
How to efficiently transfer enterprise business data?
日志记录真没你想的那么简单
[log service CLS] initial experience of Tencent cloud CLS log service
Ascinema with asciicast2gif for efficient command line terminal recording
great! The novel website project is completely open source
Golang+redis distributed mutex
MongoDB入門實戰教程:學習總結目錄
Intelij 中的 Database Tools可以连接但是无法显示SCHEMA, TABLES
MySQL 开发规范
Detailed explanation of estab of Stata regression table output
The catch-up of domestic chips has scared Qualcomm, the leader of mobile phone chips in the United States, and made moves to cope with the competition
Bosun query
Istio practical skill: enable accesslog locally
Rush for IPO, Hello, I'm in a hurry
几种常见的DoS攻击
高速公路服务区智能一体机解决方案