Authored by 石坚

修改灰度咨询500错误

@@ -219,8 +219,10 @@ const _getRelatedData = (idList) => { @@ -219,8 +219,10 @@ const _getRelatedData = (idList) => {
219 219
220 if (result && result.code === 200) { 220 if (result && result.code === 200) {
221 221
  222 +
222 _.forEach(result.data.product_list, function(data) { 223 _.forEach(result.data.product_list, function(data) {
223 224
  225 + if(data){
224 productList.push({ 226 productList.push({
225 name: data.product_name, 227 name: data.product_name,
226 price: data.sales_price, 228 price: data.sales_price,
@@ -228,6 +230,8 @@ const _getRelatedData = (idList) => { @@ -228,6 +230,8 @@ const _getRelatedData = (idList) => {
228 cnAlphabet: data.cn_alphabet, 230 cnAlphabet: data.cn_alphabet,
229 productSkn: data.product_skn 231 productSkn: data.product_skn
230 }); 232 });
  233 + }
  234 +
231 }); 235 });
232 236
233 return productList; 237 return productList;