Authored by htoooth

refactor

... ... @@ -31,6 +31,10 @@ module.exports.indexAsync = (pid) => {
item.img = helpers.getForceSourceUrl(area.imageUrl);
}
if(!area.infos){
return result;
}
item.list = area.infos.reduce((acc, cur, index) => {
if (!cur.product || !cur.product.goodsList) {
return acc;
... ...
... ... @@ -1395,9 +1395,7 @@ module.exports.indexConsultAsync = (uid, pid, page, size) => {
/**
* 添加咨询
*/
module.exports.createConsultAsync = (uid, pid, content) => {
return consultAPI.createAsync(uid, pid, content);
};
module.exports.createConsultAsync = consultAPI.createAsync;
/**
* 获取某一个商品详情主页面
... ...