@@ -251,7 +251,7 @@ public WxPayRefundResult refundV2(WxPayRefundRequest request) throws WxPayExcept
251
251
@ Override
252
252
public WxPayRefundV3Result refundV3 (WxPayRefundV3Request request ) throws WxPayException {
253
253
String url = String .format ("%s/v3/refund/domestic/refunds" , this .getPayBaseUrl ());
254
- String response = this .postV3 (url , GSON .toJson (request ));
254
+ String response = this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
255
255
return GSON .fromJson (response , WxPayRefundV3Result .class );
256
256
}
257
257
@@ -294,21 +294,21 @@ public WxPayRefundQueryResult refundQueryV2(WxPayRefundQueryRequest request) thr
294
294
@ Override
295
295
public WxPayRefundQueryV3Result refundQueryV3 (String outRefundNo ) throws WxPayException {
296
296
String url = String .format ("%s/v3/refund/domestic/refunds/%s" , this .getPayBaseUrl (), outRefundNo );
297
- String response = this .getV3 (url );
297
+ String response = this .getV3WithWechatPaySerial (url );
298
298
return GSON .fromJson (response , WxPayRefundQueryV3Result .class );
299
299
}
300
300
301
301
@ Override
302
302
public WxPayRefundQueryV3Result refundQueryV3 (WxPayRefundQueryV3Request request ) throws WxPayException {
303
303
String url = String .format ("%s/v3/refund/domestic/refunds/%s" , this .getPayBaseUrl (), request .getOutRefundNo ());
304
- String response = this .getV3 (url );
304
+ String response = this .getV3WithWechatPaySerial (url );
305
305
return GSON .fromJson (response , WxPayRefundQueryV3Result .class );
306
306
}
307
307
308
308
@ Override
309
309
public WxPayRefundQueryV3Result refundPartnerQueryV3 (WxPayRefundQueryV3Request request ) throws WxPayException {
310
310
String url = String .format ("%s/v3/refund/domestic/refunds/%s?sub_mchid=%s" , this .getPayBaseUrl (), request .getOutRefundNo (), request .getSubMchid ());
311
- String response = this .getV3 (url );
311
+ String response = this .getV3WithWechatPaySerial (url );
312
312
return GSON .fromJson (response , WxPayRefundQueryV3Result .class );
313
313
}
314
314
@@ -523,7 +523,7 @@ public WxPayOrderQueryV3Result queryOrderV3(WxPayOrderQueryV3Request request) th
523
523
url = String .format ("%s/v3/pay/transactions/id/%s" , this .getPayBaseUrl (), request .getTransactionId ());
524
524
}
525
525
String query = String .format ("?mchid=%s" , request .getMchid ());
526
- String response = this .getV3 (url + query );
526
+ String response = this .getV3WithWechatPaySerial (url + query );
527
527
return GSON .fromJson (response , WxPayOrderQueryV3Result .class );
528
528
}
529
529
@@ -548,14 +548,14 @@ public WxPayPartnerOrderQueryV3Result queryPartnerOrderV3(WxPayPartnerOrderQuery
548
548
url = String .format ("%s/v3/pay/partner/transactions/id/%s" , this .getPayBaseUrl (), request .getTransactionId ());
549
549
}
550
550
String query = String .format ("?sp_mchid=%s&sub_mchid=%s" , request .getSpMchId (), request .getSubMchId ());
551
- String response = this .getV3 (url + query );
551
+ String response = this .getV3WithWechatPaySerial (url + query );
552
552
return GSON .fromJson (response , WxPayPartnerOrderQueryV3Result .class );
553
553
}
554
554
555
555
@ Override
556
556
public CombineQueryResult queryCombine (String combineOutTradeNo ) throws WxPayException {
557
557
String url = String .format ("%s/v3/combine-transactions/out-trade-no/%s" , this .getPayBaseUrl (), combineOutTradeNo );
558
- String response = this .getV3 (url );
558
+ String response = this .getV3WithWechatPaySerial (url );
559
559
return GSON .fromJson (response , CombineQueryResult .class );
560
560
}
561
561
@@ -609,7 +609,7 @@ public void closeOrderV3(WxPayOrderCloseV3Request request) throws WxPayException
609
609
request .setMchid (this .getConfig ().getMchId ());
610
610
}
611
611
String url = String .format ("%s/v3/pay/transactions/out-trade-no/%s/close" , this .getPayBaseUrl (), request .getOutTradeNo ());
612
- this .postV3 (url , GSON .toJson (request ));
612
+ this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
613
613
}
614
614
615
615
@ Override
@@ -621,13 +621,13 @@ public void closePartnerOrderV3(WxPayPartnerOrderCloseV3Request request) throws
621
621
request .setSubMchId (this .getConfig ().getSubMchId ());
622
622
}
623
623
String url = String .format ("%s/v3/pay/partner/transactions/out-trade-no/%s/close" , this .getPayBaseUrl (), request .getOutTradeNo ());
624
- this .postV3 (url , GSON .toJson (request ));
624
+ this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
625
625
}
626
626
627
627
@ Override
628
628
public void closeCombine (CombineCloseRequest request ) throws WxPayException {
629
629
String url = String .format ("%s/v3/combine-transactions/out-trade-no/%s/close" , this .getPayBaseUrl (), request .getCombineOutTradeNo ());
630
- this .postV3 (url , GSON .toJson (request ));
630
+ this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
631
631
}
632
632
633
633
@ Override
@@ -771,7 +771,7 @@ public WxPayUnifiedOrderV3Result unifiedPartnerOrderV3(TradeTypeEnum tradeType,
771
771
}
772
772
773
773
String url = this .getPayBaseUrl () + tradeType .getBasePartnerUrl ();
774
- String response = this .postV3 (url , GSON .toJson (request ));
774
+ String response = this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
775
775
return GSON .fromJson (response , WxPayUnifiedOrderV3Result .class );
776
776
}
777
777
@@ -788,7 +788,7 @@ public WxPayUnifiedOrderV3Result unifiedOrderV3(TradeTypeEnum tradeType, WxPayUn
788
788
}
789
789
790
790
String url = this .getPayBaseUrl () + tradeType .getPartnerUrl ();
791
- String response = this .postV3 (url , GSON .toJson (request ));
791
+ String response = this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
792
792
return GSON .fromJson (response , WxPayUnifiedOrderV3Result .class );
793
793
}
794
794
@@ -801,7 +801,7 @@ public CombineTransactionsResult combine(TradeTypeEnum tradeType, CombineTransac
801
801
request .setCombineMchid (this .getConfig ().getMchId ());
802
802
}
803
803
String url = this .getPayBaseUrl () + tradeType .getCombineUrl ();
804
- String response = this .postV3 (url , GSON .toJson (request ));
804
+ String response = this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
805
805
return GSON .fromJson (response , CombineTransactionsResult .class );
806
806
}
807
807
@@ -1114,7 +1114,7 @@ public WxPayApplyBillV3Result applyTradeBill(WxPayApplyTradeBillV3Request reques
1114
1114
} else {
1115
1115
url = String .format ("%s/v3/bill/tradebill?bill_date=%s&bill_type=%s&tar_type=%s" , this .getPayBaseUrl (), request .getBillDate (), request .getBillType (), request .getTarType ());
1116
1116
}
1117
- String response = this .getV3 (url );
1117
+ String response = this .getV3WithWechatPaySerial (url );
1118
1118
return GSON .fromJson (response , WxPayApplyBillV3Result .class );
1119
1119
}
1120
1120
@@ -1126,7 +1126,7 @@ public WxPayApplyBillV3Result applyFundFlowBill(WxPayApplyFundFlowBillV3Request
1126
1126
} else {
1127
1127
url = String .format ("%s/v3/bill/fundflowbill?bill_date=%s&account_type=%s&tar_type=%s" , this .getPayBaseUrl (), request .getBillDate (), request .getAccountType (), request .getTarType ());
1128
1128
}
1129
- String response = this .getV3 (url );
1129
+ String response = this .getV3WithWechatPaySerial (url );
1130
1130
return GSON .fromJson (response , WxPayApplyBillV3Result .class );
1131
1131
}
1132
1132
@@ -1155,7 +1155,7 @@ public WxPayCodepayResult codepay(WxPayCodepayRequest request) throws WxPayExcep
1155
1155
request .setMchid (this .getConfig ().getMchId ());
1156
1156
}
1157
1157
String url = String .format ("%s/v3/pay/transactions/codepay" , this .getPayBaseUrl ());
1158
- String body = this .postV3 (url , GSON .toJson (request ));
1158
+ String body = this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
1159
1159
return GSON .fromJson (body , WxPayCodepayResult .class );
1160
1160
}
1161
1161
@@ -1181,7 +1181,7 @@ public WxPayOrderReverseV3Result reverseOrderV3(WxPayOrderReverseV3Request reque
1181
1181
}
1182
1182
// 拼接参数请求路径并发送
1183
1183
String url = String .format ("%s/v3/pay/transactions/out-trade-no/%s/reverse" , this .getPayBaseUrl (), request .getOutTradeNo ());
1184
- String response = this .postV3 (url , GSON .toJson (request ));
1184
+ String response = this .postV3WithWechatpaySerial (url , GSON .toJson (request ));
1185
1185
return GSON .fromJson (response , WxPayOrderReverseV3Result .class );
1186
1186
}
1187
1187
0 commit comments