Commit 65dff1ce authored by hezhen's avatar hezhen

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform into base-modify

parents 7cb0cbdc eec6e38c
......@@ -422,6 +422,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
/**
* APP支付退款
*
* @param
* @param outTradeNo 订单号
* @param tradNo 流水号
......@@ -439,10 +440,11 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
"\"refund_amount\":" + realAmount + "," +
"\"out_request_no\":\"" + refundReason + "\"" +
" }");
try{
AlipayTradeRefundResponse response = alipayClient.execute(request);
try {
log.info("支付宝退款中:outTradeNo = {}, tradNo = {}, refundAmount = {}, refundReason = {}", outTradeNo, tradNo, refundAmount, refundReason);
if(response.isSuccess()){
AlipayTradeRefundResponse response = alipayClient.execute(request);
log.info(response.getMsg());
if (response.isSuccess()) {
return true;
} else {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment