Browse Source

fix pay v3

release_toaliyun_real
zhengfangyuan 3 years ago
parent
commit
61baa57849
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      mallinkService/src/main/java/com/iformall/pay/WxPayV3.java

+ 4
- 4
mallinkService/src/main/java/com/iformall/pay/WxPayV3.java View File

@@ -134,7 +134,7 @@ public class WxPayV3 {
* @throws WxPayException
*/
public static String payCommonQuery(WxPayService payService,V3PayQueryReq payQuery) throws WxPayException {
return payService.postV3WithWechatpaySerial(String.format(PAY_COMMON_QUERY_URL, payQuery.getOut_trade_no()), JSON.toJSONString(payQuery));
return payService.getV3WithWechatPaySerial(String.format(PAY_COMMON_QUERY_URL, payQuery.getOut_trade_no())+"?sp_mchid="+payQuery.getSp_mchid()+"&sub_mchid="+payQuery.getSub_mchid());
}
/**
@@ -150,7 +150,7 @@ public class WxPayV3 {
* @throws WxPayException
*/
public static String payCombineQuery(WxPayService payService,V3PayQueryReq payQuery) throws WxPayException {
return payService.postV3WithWechatpaySerial(String.format(PAY_COMBINE_QUERY_URL, payQuery.getOut_trade_no()), null);
return payService.getV3WithWechatPaySerial(String.format(PAY_COMBINE_QUERY_URL, payQuery.getOut_trade_no()));
}
@@ -192,7 +192,7 @@ public class WxPayV3 {
* @throws WxPayException
*/
public static String shareQuery(WxPayService payService,V3PayShareQueryReq req) throws WxPayException {
return payService.postV3WithWechatpaySerial(String.format(SHARE_QUERY_URL, req.getOut_order_no()), JSON.toJSONString(req));
return payService.getV3WithWechatPaySerial(String.format(SHARE_QUERY_URL, req.getOut_order_no())+"?sub_mchid="+req.getSub_mchid()+"&transaction_id="+req.getTransaction_id());
}
/**
@@ -208,7 +208,7 @@ public class WxPayV3 {
* @throws WxPayException
*/
public static String payCommonRefundQuery(WxPayService payService,String outRefundNo) throws WxPayException {
return payService.postV3WithWechatpaySerial(String.format(PAY_COMMON_REFUND_QUERY_URL, outRefundNo), null);
return payService.getV3WithWechatPaySerial(String.format(PAY_COMMON_REFUND_QUERY_URL, outRefundNo));
}
}

Loading…
Cancel
Save