...
|
...
|
@@ -426,7 +426,10 @@ class ShopModel |
|
|
}
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
return array(
|
|
|
'title' => empty($result[0]['title']) ? '' : $result[0]['title'],
|
|
|
'list'=> $result
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -571,13 +574,8 @@ class ShopModel |
|
|
$list = self::$fun(self::getResourceData($list), $parameters);
|
|
|
switch ($fun) {
|
|
|
case 'shopTopBanner':
|
|
|
$data[$fun] = $list;
|
|
|
break;
|
|
|
case 'signboard':
|
|
|
$data[$fun] = array(
|
|
|
'title' => isset($list[0]['title']) ? $list[0]['title'] : '',
|
|
|
'list'=> $list
|
|
|
);
|
|
|
$data[$fun] = $list;
|
|
|
break;
|
|
|
}
|
|
|
}
|
...
|
...
|
|