Authored by whb

common getbanner

... ... @@ -101,7 +101,11 @@ class CommonController extends WebAction
$banner = '';
if(isset($data['data'][0]['data']))
{
if($data['data'][0]['template_name'] == 'single_image') {
$banner = current($data['data'][0]['data']);
} else if($data['data'][0]['template_name'] == 'single_name_image') {
$banner = $data['data'][0]['data'];
}
if(!empty($banner)) {
if(empty($width) || empty($height) ) {
$width = 2600;//通栏广告
... ...