Showing
2 changed files
with
5 additions
and
3 deletions
@@ -31,6 +31,10 @@ module.exports.indexAsync = (pid) => { | @@ -31,6 +31,10 @@ module.exports.indexAsync = (pid) => { | ||
31 | item.img = helpers.getForceSourceUrl(area.imageUrl); | 31 | item.img = helpers.getForceSourceUrl(area.imageUrl); |
32 | } | 32 | } |
33 | 33 | ||
34 | + if(!area.infos){ | ||
35 | + return result; | ||
36 | + } | ||
37 | + | ||
34 | item.list = area.infos.reduce((acc, cur, index) => { | 38 | item.list = area.infos.reduce((acc, cur, index) => { |
35 | if (!cur.product || !cur.product.goodsList) { | 39 | if (!cur.product || !cur.product.goodsList) { |
36 | return acc; | 40 | return acc; |
@@ -1395,9 +1395,7 @@ module.exports.indexConsultAsync = (uid, pid, page, size) => { | @@ -1395,9 +1395,7 @@ module.exports.indexConsultAsync = (uid, pid, page, size) => { | ||
1395 | /** | 1395 | /** |
1396 | * 添加咨询 | 1396 | * 添加咨询 |
1397 | */ | 1397 | */ |
1398 | -module.exports.createConsultAsync = (uid, pid, content) => { | ||
1399 | - return consultAPI.createAsync(uid, pid, content); | ||
1400 | -}; | 1398 | +module.exports.createConsultAsync = consultAPI.createAsync; |
1401 | 1399 | ||
1402 | /** | 1400 | /** |
1403 | * 获取某一个商品详情主页面 | 1401 | * 获取某一个商品详情主页面 |
-
Please register or login to post a comment