|
@@ -416,12 +416,19 @@ public class SettlementOrderLogic {
|
|
|
continue;
|
|
|
|
|
|
WxPayService payService = wechatLogic.getPayJaspWebstiService(workerOrder.getConfigId(), "B");
|
|
|
-
|
|
|
- WxPayOrderQueryResult wxPayOrderQueryResult = payService.queryOrder("", workerOrder.getOrderId());
|
|
|
-
|
|
|
+ WxPayOrderQueryResult wxPayOrderQueryResult = null;
|
|
|
+ try {
|
|
|
+ wxPayOrderQueryResult = payService.queryOrder("", workerOrder.getOrderId());
|
|
|
+ }catch (Exception e){
|
|
|
+ log.info(e);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
workerOrder.setPayNum((workerOrder.getPayNum()==null?0: workerOrder.getPayNum())+1);
|
|
|
workerOrder.updateById();
|
|
|
|
|
|
+ if (wxPayOrderQueryResult == null)
|
|
|
+ continue;
|
|
|
+
|
|
|
if (!wxPayOrderQueryResult.getReturnCode().equals("SUCCESS")) {
|
|
|
continue;
|
|
|
}
|