|
@@ -57,7 +57,6 @@ public class RefundRecordServiceImpl extends ServiceImpl<RefundRecordMapper, Ref
|
|
if (failCause.length()>80){
|
|
if (failCause.length()>80){
|
|
failCause = "购买失败,详情请在小程序查看";
|
|
failCause = "购买失败,详情请在小程序查看";
|
|
}
|
|
}
|
|
- System.out.println("进入退款方法");
|
|
|
|
HttpPost httpPost = new HttpPost(wxpayConfig.getV3urlRefund());
|
|
HttpPost httpPost = new HttpPost(wxpayConfig.getV3urlRefund());
|
|
httpPost.addHeader("Accept", "application/json");
|
|
httpPost.addHeader("Accept", "application/json");
|
|
httpPost.addHeader("Content-type","application/json; charset=utf-8");
|
|
httpPost.addHeader("Content-type","application/json; charset=utf-8");
|
|
@@ -71,7 +70,7 @@ public class RefundRecordServiceImpl extends ServiceImpl<RefundRecordMapper, Ref
|
|
.put("refund", wxOrder.getTotal())
|
|
.put("refund", wxOrder.getTotal())
|
|
.put("total", wxOrder.getTotal())
|
|
.put("total", wxOrder.getTotal())
|
|
.put("currency", wxOrder.getCurrency());
|
|
.put("currency", wxOrder.getCurrency());
|
|
- System.out.println(rootNode.toString());
|
|
|
|
|
|
+
|
|
// ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
|
// ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
|
// objectMapper.writeValue(bos, rootNode);
|
|
// objectMapper.writeValue(bos, rootNode);
|
|
httpPost.setEntity(new StringEntity(rootNode.toString(), "utf-8"));
|
|
httpPost.setEntity(new StringEntity(rootNode.toString(), "utf-8"));
|