Commit 43b46d31 authored by zhuxiao's avatar zhuxiao
Browse files

微信API V3接口回调参数获取

parent 23365f26
......@@ -71,6 +71,11 @@ public abstract class AbstractChannelNoticeService implements IChannelNoticeServ
return requestKitBean.getReqParamJSON();
}
/**request.getParameter 获取参数 并转换为JSON格式 **/
protected JSONObject reqParam2JSON() {
return requestKitBean.reqParam2JSON();
}
/** 获取文件路径 **/
protected String getCertFilePath(String certFilePath) {
return channelCertConfigKitBean.getCertFilePath(certFilePath);
......
......@@ -198,7 +198,7 @@ public class WxpayChannelNoticeService extends AbstractChannelNoticeService {
header.setSignature(request.getHeader("Wechatpay-Signature"));
// 获取加密信息
JSONObject params = getReqParamJSON();
JSONObject params = reqParam2JSON();
log.info("\n【请求头信息】:{}\n【加密数据】:{}", header.toString(), params.toJSONString());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment