...
|
...
|
@@ -94,16 +94,16 @@ class InfoModel |
|
|
$goodsGroup = array_merge_recursive($goodsGroup, self::goodsGroup($con['data']));
|
|
|
} else {
|
|
|
$other = is_callable("self::$type") ? self::$type($con['data']) : '';
|
|
|
$result['content'] = array_merge_recursive($result['content'], $other);
|
|
|
array_push($result['content'], $other);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if (!empty($goods)) {
|
|
|
$result['content']['relatedReco'] = array('recos'=>$goods);
|
|
|
$result['content'][]['relatedReco'] = array('recos'=>$goods);
|
|
|
}
|
|
|
if (!empty($goodsGroup)) {
|
|
|
$result['content']['relatedReco'] = $goodsGroup;
|
|
|
$result['content'][]['relatedReco'] = $goodsGroup;
|
|
|
}
|
|
|
//赞、收藏
|
|
|
if (isset($data['baseInfo']) && !empty($data['baseInfo'])) {
|
...
|
...
|
|