Authored by 李靖

lodash优化

@@ -41,7 +41,7 @@ class materialModel extends global.yoho.BaseModel { @@ -41,7 +41,7 @@ class materialModel extends global.yoho.BaseModel {
41 goods: [] 41 goods: []
42 }; 42 };
43 43
44 - if (result && result.data && result.data.product_list) { 44 + if (_.get(result, 'data.product_list', [])) {
45 let build = []; 45 let build = [];
46 46
47 build = productProcess.processProductList(result.data.product_list || [], { 47 build = productProcess.processProductList(result.data.product_list || [], {