| @@ -209,15 +209,26 @@ public class AliPayController extends BaseController { | |||||
| logger.error("alipay notify notify error. bizContent empity:"+paramMap); | logger.error("alipay notify notify error. bizContent empity:"+paramMap); | ||||
| }else { | }else { | ||||
| JSONObject jo = JSON.parseObject(bizContent); | JSONObject jo = JSON.parseObject(bizContent); | ||||
| String mallCellType= jo.getString("mall_cell_type"); | |||||
| String gmtPayment = jo.getString("gmt_payment"); | String gmtPayment = jo.getString("gmt_payment"); | ||||
| String mallPid = jo.getString("mall_pid"); | |||||
| String totalAmount = jo.getString("total_amount");//交易总金额 | |||||
| String receiptAmount = jo.getString("receipt_amount");//商家实收金额 | |||||
| String mallStoreId = jo.getString("mall_store_id"); | String mallStoreId = jo.getString("mall_store_id"); | ||||
| String buyerId = jo.getString("buyer_id"); | String buyerId = jo.getString("buyer_id"); | ||||
| String mallCellId = jo.getString("mall_cell_id"); | |||||
| String tradeNo = jo.getString("trade_no"); | |||||
| } | } | ||||
| //退款成功 | |||||
| }else if ("alipay.business.mall.trade.refunded".equals(msgMethod)) { | }else if ("alipay.business.mall.trade.refunded".equals(msgMethod)) { | ||||
| String bizContent = (String) paramMap.get("biz_content"); | |||||
| if (StringUtils.isBlank(bizContent)) { | |||||
| logger.error("alipay notify notify error. bizContent empity:"+paramMap); | |||||
| }else { | |||||
| JSONObject jo = JSON.parseObject(bizContent); | |||||
| String gmtRefundPay = jo.getString("gmt_refund_pay");//退款时间 | |||||
| String refundFee = jo.getString("refund_fee");//本次退款金额 | |||||
| String mallStoreId = jo.getString("mall_store_id"); | |||||
| String buyerId = jo.getString("buyer_id"); | |||||
| String tradeNo = jo.getString("trade_no"); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||