|
@@ -1270,13 +1270,13 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
result.put("signType", "MD5");
|
|
result.put("signType", "MD5");
|
|
result.put("sign", WXPayUtil.generateSignature(result, key, WXPayConstants.SignType.MD5));
|
|
result.put("sign", WXPayUtil.generateSignature(result, key, WXPayConstants.SignType.MD5));
|
|
log.info("微信退款参数:{}"+JSON.toJSONString(data));
|
|
log.info("微信退款参数:{}"+JSON.toJSONString(data));
|
|
- Map rMap = wxpay.refund(data);
|
|
|
|
|
|
+ Map<String, String> rMap = wxpay.refund(data);
|
|
log.info("微信退款结果:{}"+JSON.toJSONString(rMap));
|
|
log.info("微信退款结果:{}"+JSON.toJSONString(rMap));
|
|
if(Validator.isNotEmpty(rMap)){
|
|
if(Validator.isNotEmpty(rMap)){
|
|
if(rMap.containsKey("result_code")){
|
|
if(rMap.containsKey("result_code")){
|
|
- String result_code = (String)rMap.get("result_code");
|
|
|
|
|
|
+ String result_code = rMap.get("result_code");
|
|
if("FAIL".equals(result_code)){
|
|
if("FAIL".equals(result_code)){
|
|
- String err_code_des = (String)rMap.get("err_code_des");
|
|
|
|
|
|
+ String err_code_des = rMap.get("err_code_des");
|
|
throw new CustomException("微信退款失败:"+err_code_des);
|
|
throw new CustomException("微信退款失败:"+err_code_des);
|
|
}
|
|
}
|
|
}
|
|
}
|