|
@@ -426,7 +426,10 @@ class ShopModel |
|
@@ -426,7 +426,10 @@ class ShopModel |
426
|
}
|
426
|
}
|
427
|
}
|
427
|
}
|
428
|
|
428
|
|
429
|
- return $result;
|
429
|
+ return array(
|
|
|
430
|
+ 'title' => empty($result[0]['title']) ? '' : $result[0]['title'],
|
|
|
431
|
+ 'list'=> $result
|
|
|
432
|
+ );
|
430
|
}
|
433
|
}
|
431
|
|
434
|
|
432
|
/**
|
435
|
/**
|
|
@@ -571,13 +574,8 @@ class ShopModel |
|
@@ -571,13 +574,8 @@ class ShopModel |
571
|
$list = self::$fun(self::getResourceData($list), $parameters);
|
574
|
$list = self::$fun(self::getResourceData($list), $parameters);
|
572
|
switch ($fun) {
|
575
|
switch ($fun) {
|
573
|
case 'shopTopBanner':
|
576
|
case 'shopTopBanner':
|
574
|
- $data[$fun] = $list;
|
|
|
575
|
- break;
|
|
|
576
|
case 'signboard':
|
577
|
case 'signboard':
|
577
|
- $data[$fun] = array(
|
|
|
578
|
- 'title' => isset($list[0]['title']) ? $list[0]['title'] : '',
|
|
|
579
|
- 'list'=> $list
|
|
|
580
|
- );
|
578
|
+ $data[$fun] = $list;
|
581
|
break;
|
579
|
break;
|
582
|
}
|
580
|
}
|
583
|
}
|
581
|
}
|