Authored by 郝肖肖

去除多次调用getImageUrl方法

@@ -65,9 +65,6 @@ class Process @@ -65,9 +65,6 @@ class Process
65 } 65 }
66 $len = count($data['menuNav']['blocks']); 66 $len = count($data['menuNav']['blocks']);
67 foreach ($data['menuNav']['blocks'] as $key => $val) { 67 foreach ($data['menuNav']['blocks'] as $key => $val) {
68 - if ($len <= 2 && $key == 0) {  
69 - $val['img'] = Images::getImageUrl($val['img'], 185, 152, 1);  
70 - }  
71 $val['img'] = Images::getImageUrl($val['img'], 185, 76, 1); 68 $val['img'] = Images::getImageUrl($val['img'], 185, 76, 1);
72 $val['url'] = Helpers::transUrl($val['url'], $type); 69 $val['url'] = Helpers::transUrl($val['url'], $type);
73 $temp['tplrecommend']['keyword'][] = array( 70 $temp['tplrecommend']['keyword'][] = array(