‘linchangsheng’ 7 months ago
parent
commit
1f680d42a3

+ 10 - 3
mall-server-api/src/main/java/com/gree/mall/manager/logic/websit/SettlementOrderLogic.java

@@ -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;
                 }