Browse Source

1、支付回调

master
Aug 1 month ago
parent
commit
be1405794d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      han-hai-module-pay/src/main/java/org/jeecg/modules/pay/MpWxPayService.java

+ 2
- 2
han-hai-module-pay/src/main/java/org/jeecg/modules/pay/MpWxPayService.java View File

@ -99,13 +99,13 @@ public class MpWxPayService {
request.setTotalFee(price); //总金额|分计 request.setTotalFee(price); //总金额|分计
request.setSpbillCreateIp(clientIp); //终端IP request.setSpbillCreateIp(clientIp); //终端IP
// request.setNotifyUrl(wxPay.notifyUrl);//设置回调路径 // request.setNotifyUrl(wxPay.notifyUrl);//设置回调路径
request.setNotifyUrl("https:///www.hongyujiaoyu.com/studytour-admin/studytour/order/createOrder");//设置回调路径
request.setNotifyUrl("https:///www.hongyujiaoyu.com/studytour-admin/studytour/order/payOrderNotify");//设置回调路径
request.setProductId(productId); //商品id request.setProductId(productId); //商品id
request.setOpenid(openId); //JSAPI OPENID request.setOpenid(openId); //JSAPI OPENID
if (dev){ if (dev){
request.setTotalFee(price); request.setTotalFee(price);
// request.setNotifyUrl(wxPay.notifyUrlDev); // request.setNotifyUrl(wxPay.notifyUrlDev);
request.setNotifyUrl("https:///www.hongyujiaoyu.com/studytour-admin/studytour/order/createOrder");//设置回调路径
request.setNotifyUrl("https:///www.hongyujiaoyu.com/studytour-admin/studytour/order/payOrderNotify");//设置回调路径
} }
try { try {
Object order = wxPayService.createOrder(request); Object order = wxPayService.createOrder(request);


Loading…
Cancel
Save