利用 whistle 调试微信分享

2020-07-25  本文已影响0人  Axiba

1、whistle

$ npm install -g whistle
$ w2 start  # w2 start -p 8899  默认是8899

[i] whistle@2.5.14 started
[i] 1. use your device to visit the following URL list, gets the IP of the URL you can access:
       http://127.0.0.1:8899/
       http://192.168.1.001:8899/

这样就可以抓到包了,如果要抓到HTTPS的

2、抓取 HTTPS

3、代理映射本地开发工程

$ sudo npx next dev -p 80
// 其实这个地址是配置在微信公众号配置的安全域名,这样就可以通过本地验证调用微信分享
https://preview.xxxxxxx/ http://127.0.0.1
image.png

此时可以在微信开发者工具中打开地址直接测试分享功能

4、利用真机代理调试

5、利用 log 打印手机端日志

Rules-default 增加一行配置如下:

https://preview.xxxxxxx/ log://
上一篇 下一篇

猜你喜欢

热点阅读