|
|
@@ -191,6 +191,8 @@ public class PayTools extends AbstractManager { |
|
|
|
} |
|
|
|
|
|
|
|
private void queryV3(IssueOrderPay pay, CommonPayConfig payConfig) throws ServiceHandleException { |
|
|
|
//没有外部订单编号,则认为没有请求过支付,就不需要请求微信查询 |
|
|
|
if (!hasText(pay.getExternalOrderNo())) return; |
|
|
|
AtsQueryPayResultV3Request v3Request = new AtsQueryPayResultV3Request(); |
|
|
|
v3Request.setCreateType(payConfig.getWxServiceType()); |
|
|
|
v3Request.setOutTradeNo(pay.getPayOrderNo()); |
|
|
@@ -216,6 +218,8 @@ public class PayTools extends AbstractManager { |
|
|
|
} |
|
|
|
|
|
|
|
private void queryV2(IssueOrderPay pay, CommonPayConfig payConfig) throws ServiceHandleException { |
|
|
|
//没有外部订单编号,则认为没有请求过支付,就不需要请求微信查询 |
|
|
|
if (!hasText(pay.getExternalOrderNo())) return; |
|
|
|
AtsQueryPayResultV2Request v2Request = new AtsQueryPayResultV2Request(); |
|
|
|
v2Request.setCreateType(payConfig.getWxServiceType()); |
|
|
|
v2Request.setOutTradeNo(pay.getPayOrderNo()); |