Commit ca98aa92 authored by unset's avatar unset

添加通知信息

parent ce8d3d85
...@@ -123,6 +123,20 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> { ...@@ -123,6 +123,20 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
sellerAccount = SystemConfig.ALIPAY_PID; sellerAccount = SystemConfig.ALIPAY_PID;
orderPayVo.setPayType(2); orderPayVo.setPayType(2);
jsParam = generateAliPayment(orderPayVo, notifyUrl); jsParam = generateAliPayment(orderPayVo, notifyUrl);
if (StringUtils.isNotBlank(jsParam)) {
JSONObject jsonObject = JSONObject.parseObject(jsParam);
JSONObject response = jsonObject.getJSONObject("alipay_trade_precreate_response");
if (response != null) {
String qrCode = response.getString("qr_code");
if (StringUtils.isNotBlank(qrCode)) {
jsParam = qrCode;
} else {
return JsonResultUtil.createDefaultFail();
}
} else {
return JsonResultUtil.createDefaultFail();
}
}
} else if (payWay == 1) { //微信支付 } else if (payWay == 1) { //微信支付
sellerAccount = SystemConfig.APP_PARTNER; sellerAccount = SystemConfig.APP_PARTNER;
jsParam = WXPay.getH5PayParam(amount + "", orderPayVo.getBuyerIp(), trade_no, orderPayVo.getBody(), orderPayVo.getBody(), orderPayVo.getBody(), notify_url); jsParam = WXPay.getH5PayParam(amount + "", orderPayVo.getBuyerIp(), trade_no, orderPayVo.getBody(), orderPayVo.getBody(), orderPayVo.getBody(), notify_url);
......
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