Authored by 郭成尧

read-from-undefined-err

@@ -337,7 +337,7 @@ const listNew = (req, res, next) => { @@ -337,7 +337,7 @@ const listNew = (req, res, next) => {
337 let categoryIntroRedis = []; 337 let categoryIntroRedis = [];
338 338
339 let responseResult = { 339 let responseResult = {
340 - list: productProcess.processProductList(result.data.product_list || [], { 340 + list: productProcess.processProductList(_.get(result, 'data.product_list', []), {
341 isApp: params.isApp || (params.appVersion && params.appVersion !== 'false'), 341 isApp: params.isApp || (params.appVersion && params.appVersion !== 'false'),
342 gender: _coverChannel[params.coverChannel], 342 gender: _coverChannel[params.coverChannel],
343 showSimilar: params.shop_id || params.material === 'true' ? false : true 343 showSimilar: params.shop_id || params.material === 'true' ? false : true