Showing
1 changed file
with
2 additions
and
2 deletions
@@ -64,7 +64,7 @@ module.exports = (list, options) => { | @@ -64,7 +64,7 @@ module.exports = (list, options) => { | ||
64 | 64 | ||
65 | _.forEach(list, (product) => { | 65 | _.forEach(list, (product) => { |
66 | // 商品信息有问题,则不显示 | 66 | // 商品信息有问题,则不显示 |
67 | - if (!product.productId || !product.goodsList || !product.goodsList.length) { | 67 | + if (!product || !product.productId || !product.goodsList || !product.goodsList.length) { |
68 | return; | 68 | return; |
69 | } | 69 | } |
70 | 70 | ||
@@ -134,4 +134,4 @@ module.exports = (list, options) => { | @@ -134,4 +134,4 @@ module.exports = (list, options) => { | ||
134 | }); | 134 | }); |
135 | 135 | ||
136 | return pruductList; | 136 | return pruductList; |
137 | -}; | 137 | +}; |
-
Please register or login to post a comment