...
|
...
|
@@ -31,7 +31,7 @@ class DetailModel |
|
|
|
|
|
if (is_numeric($productId) && is_numeric($goodsId)) {
|
|
|
// 调用服务
|
|
|
$baseInfo = DetailData::baseInfo($productId, $uid);
|
|
|
$baseInfo = DetailData::baseInfo($productId, $uid);
|
|
|
|
|
|
// 判断商品是否在架
|
|
|
if (empty($baseInfo['status'])) {
|
...
|
...
|
@@ -69,16 +69,6 @@ class DetailModel |
|
|
}
|
|
|
}
|
|
|
|
|
|
// 新品标签
|
|
|
if (isset($baseInfo['isNew']) && $baseInfo['isNew'] === 'Y') {
|
|
|
$result['tags']['is_new'] = true;
|
|
|
}
|
|
|
|
|
|
// NEW和SALE只显示一个
|
|
|
if (isset($result['tags']['is_new']) && isset($result['tags']['is_discount'])) {
|
|
|
unset($result['tags']['is_discount']);
|
|
|
}
|
|
|
|
|
|
// 商品价格
|
|
|
if (isset($baseInfo['productPriceBo'])) {
|
|
|
$result['goodsPrice'] = array();
|
...
|
...
|
@@ -141,7 +131,7 @@ class DetailModel |
|
|
$build = array();
|
|
|
foreach ($baseInfo['commentBoWrapper']['commentBoList'] as $value) {
|
|
|
$build['userName'] = $value['nickName'];
|
|
|
$build['desc'] = $value['colorName'] . $value['sizeName'];
|
|
|
$build['desc'] = $value['colorName'] . '/' . $value['sizeName'];
|
|
|
$build['content'] = $value['content'];
|
|
|
$build['time'] = $value['createTime'];
|
|
|
$result['feedbacks']['comments'][] = $build;
|
...
|
...
|
|