
这里的url,是你自己的外网地址默认 是http 80 或者https443 ,我使用的是HTTP80
token随意填,当你点击调教接口配置信息时,微信会发送请求到你自定义url ,同时会携带一些参数
自定义url里面的代码如下:
@GetMapping("/check")
public void check(HttpServletResponse response,HttpServletRequest request) throws IOException {
try {
// 开发者提交信息后,微信服务器将发送GET请求到填写的服务器地址URL上,GET请求携带参数
String signature = request.getParameter("signature");// 微信加密签名(token、timestamp、nonce。)
String timestamp = request.getParameter("timestamp");// 时间戳
String nonce = request.getParameter("nonce");// 随机数
String echostr = request.getParameter("echostr");// 随机字符串
订阅专栏 解锁全文
471

被折叠的 条评论
为什么被折叠?



