|
|
@ -167,8 +167,6 @@ public class WxpayUtils { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public static String response(String data, String url, String mchid, String privateKey, String certificate, String serialNo) { |
|
|
public static String response(String data, String url, String mchid, String privateKey, String certificate, String serialNo) { |
|
|
log.info("====>>> wxpay response, mchid: {}, serialNo: {}, url: {}, privateKey: {}, certificate: {}, data: {}", |
|
|
|
|
|
mchid, serialNo, url, privateKey, certificate, data); |
|
|
|
|
|
HttpPost httpPost = new HttpPost(url); |
|
|
HttpPost httpPost = new HttpPost(url); |
|
|
StringEntity reqEntity = new StringEntity(data, ContentType.create("application/json", "utf-8")); |
|
|
StringEntity reqEntity = new StringEntity(data, ContentType.create("application/json", "utf-8")); |
|
|
httpPost.setEntity(reqEntity); |
|
|
httpPost.setEntity(reqEntity); |
|
|
|