...
|
...
|
@@ -33,12 +33,6 @@ class DetailModel |
|
|
// 调用服务
|
|
|
$baseInfo = DetailData::baseInfo($productId, $uid);
|
|
|
|
|
|
// // 因PC目前是不判断的,先保持一致,以后有需要,可以去掉
|
|
|
// // 判断商品是否在架
|
|
|
// if (empty($baseInfo['status'])) {
|
|
|
// return $result;
|
|
|
// }
|
|
|
|
|
|
// 商品名称
|
|
|
if (isset($baseInfo['productName'])) {
|
|
|
$result['goodsName'] = $baseInfo['productName'];
|
...
|
...
|
@@ -241,7 +235,7 @@ class DetailModel |
|
|
'numInCart' => 0,
|
|
|
'goodsInstore' => $baseInfo['storage'], // 库存量
|
|
|
);
|
|
|
$soldOut = ($baseInfo['storage'] == 0) || ($totalStorageNum === 0);
|
|
|
$soldOut = ($baseInfo['storage'] == 0) || ($baseInfo['status'] == 0);
|
|
|
$notForSale = $baseInfo['attribute'] == 2;
|
|
|
// 显示加入购物车链接
|
|
|
if (!$soldOut && !$notForSale) {
|
...
|
...
|
@@ -556,7 +550,10 @@ class DetailModel |
|
|
$preference = DetailData::preference($productSkn, $channel, $brandId);
|
|
|
if (!empty($preference)) {
|
|
|
foreach ($preference as $value) {
|
|
|
$result['recommendList'][] = Helpers::formatProduct($value, false, true, true, 299, 388, false, false);
|
|
|
$value = Helpers::formatProduct($value, false, true, true, 299, 388, false, false);
|
|
|
if (false !== $value) {
|
|
|
$result['recommendList'][] = $value;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|