Authored by hf

code review by fei.hong: do merge zhifeng.liang codes to home floor

... ... @@ -270,10 +270,10 @@ class FloorProcess
foreach ($data as $key => &$value) {
if ($key == 'title') {
$urlParam = array('id' => 4);
// isset(self::$channel[$type]) && $urlParam['gender'] = self::$channel[$type];
//isset(self::$channel[$type]) && $urlParam['gender'] = self::$channel[$type];
$value['more_url'] = Helpers::url('', $urlParam, 'guang');
}
if ($key == 'list') {
if ($key == 'list' && is_array($value)) {
foreach ($value as &$one) {
if (isset($one['url'])) {
$one['url'] = Helpers::getFilterUrl($one['url']);
... ... @@ -379,19 +379,18 @@ class FloorProcess
*/
private static function small_pic($data, $type)
{
// 按照以前业务操作,不显示
return array();
$result = array();
foreach ($data as &$one) {
if (isset($one['url'])) {
$one['url'] = Helpers::getFilterUrl($one['url']);
}
$one['img'] = Helpers::getImageUrl($one['src'], 98, 98);
$one['img'] = Helpers::getImageUrl($one['src'], 275, 160);
unset($one['src']);
}
$result['small_pic'] = $data;
if (!empty($data)) {
$result['smallPic']['list'] = $data;
}
return $result;
}
... ...