|
|
@@ -60,7 +60,7 @@ public class WeChatPay {
|
|
|
public void customerToMerchant(HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
|
/** 微信下单接口 **/
|
|
|
- String orderUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder";
|
|
|
+ String orderUrl = WeChatConstants.unifiedorder;
|
|
|
|
|
|
InputStream iStream = request.getInputStream();
|
|
|
JSONObject paramJson = CommUtil.loadString(iStream);
|
|
|
@@ -189,7 +189,7 @@ public class WeChatPay {
|
|
|
@RequestMapping(value = "/customerPayedOrderQuery.do", method = RequestMethod.POST)
|
|
|
public void customerPayedOrderQuery(HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
|
- String orderQueryUrl = "https://api.mch.weixin.qq.com/pay/orderquery";
|
|
|
+ String orderQueryUrl = WeChatConstants.orderQueryUrl;
|
|
|
|
|
|
InputStream iStream = request.getInputStream();
|
|
|
JSONObject paramJson = CommUtil.loadString(iStream);
|
|
|
@@ -303,7 +303,7 @@ public class WeChatPay {
|
|
|
public void customerRefund(HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
|
/** 微信退款接口 **/
|
|
|
- String refundUrl = "https://api.mch.weixin.qq.com/secapi/pay/refund";
|
|
|
+ String refundUrl = WeChatConstants.refundUrl;
|
|
|
InputStream iStream = request.getInputStream();
|
|
|
JSONObject paramJson = CommUtil.loadString(iStream);
|
|
|
System.out.println("======退款=======paramJson" + paramJson);
|
|
|
@@ -451,7 +451,7 @@ public class WeChatPay {
|
|
|
public void customerRefundSingle(HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
|
/** 微信退款接口 **/
|
|
|
- String refundUrl = "https://api.mch.weixin.qq.com/secapi/pay/refund";
|
|
|
+ String refundUrl = WeChatConstants.refundUrl;
|
|
|
InputStream iStream = request.getInputStream();
|
|
|
JSONObject paramJson = CommUtil.loadString(iStream);
|
|
|
|