...
|
...
|
@@ -60,12 +60,10 @@ class DetailController extends AbstractAction |
|
|
// 文字
|
|
|
if (isset($value['text'])) {
|
|
|
$build['text'] = $value['text']['data']['text'];
|
|
|
$data['detail']['content'][] = $build;
|
|
|
}
|
|
|
// 单张图
|
|
|
elseif (isset($value['singleImage'])) {
|
|
|
$build['bigImage'] = Helpers::getImageUrl($value['singleImage']['data'][0]['src'], 640, 640);
|
|
|
$data['detail']['content'][] = $build;
|
|
|
}
|
|
|
// 相关推荐
|
|
|
elseif (isset($value['goods']['data'])) {
|
...
|
...
|
@@ -142,6 +140,7 @@ class DetailController extends AbstractAction |
|
|
if (!empty($detail['getOtherArticle'])) {
|
|
|
foreach ($detail['getOtherArticle'] as $value) {
|
|
|
$value['url'] = '/guang/detail/index?id=' . $value['id'];
|
|
|
$value['thumb'] = Helpers::getImageUrl($value['thumb'], 279, 175);
|
|
|
$data['relatedInfo'][] = $value;
|
|
|
}
|
|
|
}
|
...
|
...
|
|