|
|
|
@ -99,13 +99,13 @@ public class MpWxPayService { |
|
|
|
request.setTotalFee(price); //总金额|分计 |
|
|
|
request.setSpbillCreateIp(clientIp); //终端IP |
|
|
|
// 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.setOpenid(openId); //JSAPI OPENID |
|
|
|
if (dev){ |
|
|
|
request.setTotalFee(price); |
|
|
|
// 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 { |
|
|
|
Object order = wxPayService.createOrder(request); |
|
|
|
|