|
@@ -195,8 +195,7 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
* @return orderNo
|
|
|
*/
|
|
|
@Override
|
|
|
- public String refundOrder(String orderNo) {
|
|
|
- Integer total = 0;
|
|
|
+ public String refundOrder(String orderNo,Integer refundMoney,Integer total) {
|
|
|
log.info("根据订单号申请退款,订单号: {}", orderNo);
|
|
|
String url = wechatPayServiceConfig.getBaseUrl().concat(CombinePayUrlEnum.DOMESTIC_REFUNDS.getType());
|
|
|
Map<String, Object> params = new HashMap<>(2);
|
|
@@ -209,7 +208,7 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
params.put("notify_url", wechatPayServiceConfig.getRefundNotifyUrl());
|
|
|
Map<String, Object> amountMap = new HashMap<>();
|
|
|
//退款金额,单位:分
|
|
|
- amountMap.put("refund", total);
|
|
|
+ amountMap.put("refund", refundMoney);
|
|
|
//原订单金额,单位:分
|
|
|
amountMap.put("total", total);
|
|
|
amountMap.put("currency", "CNY");
|