Browse Source

物流查询bug

lrf 2 years ago
parent
commit
02fd4e7373
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/trade/orderDetail.js

+ 1 - 1
app/service/trade/orderDetail.js

@@ -23,7 +23,7 @@ class OrderDetailService extends CrudService {
     const { transport = [] } = orderDetail;
     let toSearch = [];
     if (goods_id) {
-      toSearch = transport.filter(f => f.goods.find(fg => fg.goods_id === goods_id));
+      toSearch = transport.filter(f => _.isArray(f.goods) && f.goods.find(fg => fg.goods_id === goods_id));
     } else {
       toSearch = transport;
     }