Authored by 石坚

修改灰度咨询500错误

@@ -219,15 +219,19 @@ const _getRelatedData = (idList) => { @@ -219,15 +219,19 @@ 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
224 - productList.push({  
225 - name: data.product_name,  
226 - price: data.sales_price,  
227 - productId: data.product_id,  
228 - cnAlphabet: data.cn_alphabet,  
229 - productSkn: data.product_skn  
230 - }); 225 + if(data){
  226 + productList.push({
  227 + name: data.product_name,
  228 + price: data.sales_price,
  229 + productId: data.product_id,
  230 + cnAlphabet: data.cn_alphabet,
  231 + productSkn: data.product_skn
  232 + });
  233 + }
  234 +
231 }); 235 });
232 236
233 return productList; 237 return productList;