Authored by 郝肖肖

资源位banner https

... ... @@ -128,7 +128,7 @@ class CommonController extends WebAction
$height = 60;
}
$banner['src'] = Images::getImageUrl($banner['src'], $width, $height, 2);
//str_replace('?imageView/{mode}/w/{width}/h/{height}', '', $banner['src']);
$banner['url'] = Helpers::getUrlSafe($banner['url']);
}
}
return $this->helpJsonCallbackResult($callback, $data['code'], $data['message'], $banner);
... ...
... ... @@ -83,7 +83,7 @@ class HomeModel
'name_cn' => $val['sort_name'], // 父级
'name_en' => $val['sort_name_en'],
'link' => Helpers::getUrlSafe($val['sort_url']),
'icon' => $val['sort_ico'],
'icon' => Helpers::getUrlSafe($val['sort_ico']),
'classname' => str_replace(' ', '', strtolower($val['sort_name_en'])) == $channel ? $channel .' cure' : '',
'index_main' => $indexMain ++,
'content_code' => $val['content_code'],
... ...