wei-lai

1.调试微信接口需要有自己的服务器资源

  假定已经将程序部署到服务器上,并且能够正确接收微信服务器发送过来的请求

2.记日志

  将微信发送的请求转换成 url,以及post数据体

WxStream = context.Request.InputStream;
StreamReader reader = new StreamReader(WxStream);
WxContent = reader.ReadToEnd();
var absoluteUri = context.Request.Url.AbsoluteUri;

3.关键步骤,在本地模拟post请求调试程序

   如何模拟,由于在线post工具无法请求本地地址(localhost)可以使用chrome插件postman,或者:苏飞开发助手V1.0.exe( http://download.csdn.net/detail/xiaosaoba/9560566 )

以上步骤就可以在本地调试微信接口

 

其他:

也可以用在线post工具(http://www.atool.org/httptest.php   或  http://www.sufeinet.com/)调试微信接口,但只能在服务器上记日志,不能本地调试

 

 

 

 

 

分类:

技术点:

相关文章:

  • 2021-07-19
  • 2022-03-03
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-02-13
  • 2022-01-10
  • 2021-12-04
  • 2021-05-27
相关资源
相似解决方案