Authored by htoooth

fix

@@ -72,10 +72,9 @@ const handleGoodsImage = (goodsColorInfo) => { @@ -72,10 +72,9 @@ const handleGoodsImage = (goodsColorInfo) => {
72 let image0 = {genderCover: 0, isDefault: 'Y'}; // 0商品正面图 72 let image0 = {genderCover: 0, isDefault: 'Y'}; // 0商品正面图
73 let image3 = {genderCover: 1, isDefault: 'N'}; // 3男生频道封面图 73 let image3 = {genderCover: 1, isDefault: 'N'}; // 3男生频道封面图
74 let image4 = {genderCover: 2, isDefault: 'N'}; // 4女生频道封面图 74 let image4 = {genderCover: 2, isDefault: 'N'}; // 4女生频道封面图
75 -  
76 let newGoods = handleGoods(goodsColorInfo); 75 let newGoods = handleGoods(goodsColorInfo);
77 76
78 - goodsColorInfo.goodsImagesList.forEach((g, i) => { 77 + _.get(goodsColorInfo, 'goodsImagesList', []).forEach((g, i) => {
79 if (_.isMatch(g, image0)) { 78 if (_.isMatch(g, image0)) {
80 newGoods.goodsImage[0].imageUrl = g.imageUrl; 79 newGoods.goodsImage[0].imageUrl = g.imageUrl;
81 return; 80 return;