内网穿透 微信设置


1.先修改WXController的appid和secret

内网穿透 微信设置
2.向getAccessToken发请求重新生成token,替换WXcontroller中access_token的属性值

新的 token 在控制台下生成   有效期 7200s   2小时左右   

时间过后重新生成 token  

请求地址

 http://8b42b630.ngrok.io/WXService/weixin/getAccessToken

内网穿透 微信设置


3.替换内网穿透地址

内网穿透 微信设置
4.向createMenu发请求,重新生成菜单

内网穿透地址 加上 项目名和对应的方法 createMenu

内网穿透 微信设置内网穿透 微信设置
5..进入微信测试公众号地址
 http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
 配置微信公众号:
5.1修改接口配置信息的url    就是内网穿透地址加上请求地址 


内网穿透地址                                        请求地址 
http://8b42b630.ngrok.io/WXService/weixin/portal.do

内网穿透 微信设置
5.2修改网页账号为内网穿透的域名     就是内网穿透地址 

内网穿透 微信设置

内网穿透重新开启 内网穿透地址会自动更新  

内网穿透 微信设置