|
@@ -31,7 +31,7 @@ class DetailModel |
|
@@ -31,7 +31,7 @@ class DetailModel |
31
|
|
31
|
|
32
|
if (is_numeric($productId) && is_numeric($goodsId)) {
|
32
|
if (is_numeric($productId) && is_numeric($goodsId)) {
|
33
|
// 调用服务
|
33
|
// 调用服务
|
34
|
- $baseInfo = DetailData::baseInfo($productId, $uid);
|
34
|
+ $baseInfo = DetailData::baseInfo($productId, $uid);
|
35
|
|
35
|
|
36
|
// 判断商品是否在架
|
36
|
// 判断商品是否在架
|
37
|
if (empty($baseInfo['status'])) {
|
37
|
if (empty($baseInfo['status'])) {
|
|
@@ -69,16 +69,6 @@ class DetailModel |
|
@@ -69,16 +69,6 @@ class DetailModel |
69
|
}
|
69
|
}
|
70
|
}
|
70
|
}
|
71
|
|
71
|
|
72
|
- // 新品标签
|
|
|
73
|
- if (isset($baseInfo['isNew']) && $baseInfo['isNew'] === 'Y') {
|
|
|
74
|
- $result['tags']['is_new'] = true;
|
|
|
75
|
- }
|
|
|
76
|
-
|
|
|
77
|
- // NEW和SALE只显示一个
|
|
|
78
|
- if (isset($result['tags']['is_new']) && isset($result['tags']['is_discount'])) {
|
|
|
79
|
- unset($result['tags']['is_discount']);
|
|
|
80
|
- }
|
|
|
81
|
-
|
|
|
82
|
// 商品价格
|
72
|
// 商品价格
|
83
|
if (isset($baseInfo['productPriceBo'])) {
|
73
|
if (isset($baseInfo['productPriceBo'])) {
|
84
|
$result['goodsPrice'] = array();
|
74
|
$result['goodsPrice'] = array();
|
|
@@ -141,7 +131,7 @@ class DetailModel |
|
@@ -141,7 +131,7 @@ class DetailModel |
141
|
$build = array();
|
131
|
$build = array();
|
142
|
foreach ($baseInfo['commentBoWrapper']['commentBoList'] as $value) {
|
132
|
foreach ($baseInfo['commentBoWrapper']['commentBoList'] as $value) {
|
143
|
$build['userName'] = $value['nickName'];
|
133
|
$build['userName'] = $value['nickName'];
|
144
|
- $build['desc'] = $value['colorName'] . $value['sizeName'];
|
134
|
+ $build['desc'] = $value['colorName'] . '/' . $value['sizeName'];
|
145
|
$build['content'] = $value['content'];
|
135
|
$build['content'] = $value['content'];
|
146
|
$build['time'] = $value['createTime'];
|
136
|
$build['time'] = $value['createTime'];
|
147
|
$result['feedbacks']['comments'][] = $build;
|
137
|
$result['feedbacks']['comments'][] = $build;
|