调用的是SDK的方法,Map<String, String> data = new HashMap<String, String>();
data.put("out_trade_no", orderNo);
BigDecimal multiply = amount.multiply(new BigDecimal(100));
logger.info("weChatRefundOrder:multiply-->" + multiply);
data.put("refund_fee", multiply.toBigInteger().toString());
BigDecimal totalBigDecimal = omsOrderDetail.getPayAmount().multiply(new BigDecimal(100));
logger.info("weChatRefundOrder:totalBigDecimal-->" + totalBigDecimal);
data.put("total_fee", totalBigDecimal.toBigInteger().toString());
logger.info("weChatRefundOrder:total_fee-->" + totalBigDecimal.toBigInteger().toString());
data.put("fee_type", "CNY");
data.put("out_refund_no", outRefundNo);
logger.info("weChatRefundOrder:resp-->");
logger.info("weChatRefundOrder:wxpay-->" + wxpay);
Map<String, String> resp = wxpay.refund(data);
logger.info("weChatRefundOrder:resp-->" + resp);
String result = JSON.toJSONString(resp, SerializerFeature.WriteMapNullValue);
logger.info("weChatRefundOrder:result-->" + result);
确定请求通了吗?
你是指 `result` 打印出来是空?