소스 검색

增加错误捕获

Guos 3 주 전
부모
커밋
a0021f3f68
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      fs-user-app/src/main/java/com/fs/app/controller/store/StoreOrderScrmController.java

+ 5 - 1
fs-user-app/src/main/java/com/fs/app/controller/store/StoreOrderScrmController.java

@@ -1196,7 +1196,11 @@ public class StoreOrderScrmController extends AppBaseController {
         if (order.getStatus() <2) {
             throw new CustomException("未发货订单不能查询");
         }
-        return orderService.getExpress(order);
+        try {
+            return orderService.getExpress(order);
+        }catch (Exception e){
+            return R.ok().put("deliveryId", order.getDeliveryId());
+        }
     }