public String msgCallBack(String appId, HttpServletRequest request, String msg_signature, String timestamp, String nonce, String signature) throws Exception {
System.out.println(appId);
System.out.println("参数数组" + JsonUtil.obj2String(request.getParameterMap()));
String postData = HttpUtil.httpRequest2String(request);
System.out.println("post" + postData);
WXBizMsgCrypt pc = new WXBizMsgCrypt(token, encodingAesKey, appId);
// 第三方收到公众号平台发送的消息
try {
String result2 = pc.decryptMsg(msg_signature, timestamp, nonce, postData);
System.out.println("解密后明文: " + result2);
} catch (Exception e) {
System.out.println(e.toString());
}
return "success";
}
APPID:wx753dec49c48fab55
Token 和解密 key 都没有填错 为啥一直卡在 验证失败