...
|
...
|
@@ -34,6 +34,7 @@ class ItemModel |
|
|
$statGoodsInfo = array();
|
|
|
$banner = array();
|
|
|
$baseInfo = ItemData::baseInfo($productId, $uid, $productSkn);
|
|
|
|
|
|
if(empty($baseInfo['productName']) && empty($baseInfo['erpProductId']) && empty($baseInfo['productPriceBo'])) {
|
|
|
return array();
|
|
|
}
|
...
|
...
|
@@ -108,7 +109,6 @@ class ItemModel |
|
|
|
|
|
// 是否收藏
|
|
|
$goodsInfo['isCollect'] = $favoriteData['product'];
|
|
|
|
|
|
// 限购商品
|
|
|
if ($baseInfo['isLimitBuy'] === 'Y') {
|
|
|
// 是否开售
|
...
|
...
|
@@ -118,6 +118,7 @@ class ItemModel |
|
|
if (isset($baseInfo['showStatus'])) {
|
|
|
$showStatus = intval($baseInfo['showStatus']);
|
|
|
}
|
|
|
|
|
|
$fashTopGoods = self::getFashionTopGoodsStatus($uid, $showStatus, $isBeginSale);
|
|
|
//潮流尖货状态
|
|
|
$goodsInfo['fashionTopGoods'] = array(
|
...
|
...
|
@@ -134,8 +135,7 @@ class ItemModel |
|
|
$goodsInfo['dis'] = $fashTopGoods['dis'];//是否失效
|
|
|
$goodsInfo['buyNow'] = $fashTopGoods['buyNow'];//是否立即购买
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
$soldOut = $baseInfo['status'] == 0 || $totalStorageNum === 0;
|
|
|
$notForSale = $baseInfo['attribute'] == 2;//非卖品
|
|
|
$virtualGoods = $baseInfo['attribute'] == 3;//虚拟商品
|
...
|
...
|
@@ -783,9 +783,9 @@ class ItemModel |
|
|
|
|
|
if (!empty($sizeInfo['productMaterialList'])) {
|
|
|
//商品材质[洗涤说明]
|
|
|
$material['detail'] = array();
|
|
|
$material['materialDetail'] = array();
|
|
|
foreach ($sizeInfo['productMaterialList'] as $value) {
|
|
|
$material['detail'][] = array(
|
|
|
$material['materialDetail'][] = array(
|
|
|
'img' => $value['imageUrl'],
|
|
|
'name' => $value['caption'],
|
|
|
'enName' => $value['encaption'],
|
...
|
...
|
@@ -870,7 +870,7 @@ class ItemModel |
|
|
foreach ($baseInfo['goodsList'] as $pos => $value) {
|
|
|
|
|
|
// 如果status为0,即skc下架时就跳过该商品
|
|
|
if ($value['status'] === 0) {
|
|
|
if ($value['status'] === 0 || empty($value['colorImage'])) {
|
|
|
continue;
|
|
|
}
|
|
|
if (isset($value['goodsImagesList'])) {
|
...
|
...
|
@@ -1177,6 +1177,7 @@ class ItemModel |
|
|
$result['hasLimitedCode'] = true;
|
|
|
$result['limitedCodeSoldOut'] = true;
|
|
|
$result['getLimitedCode'] = false;
|
|
|
|
|
|
break;
|
|
|
case 6: // 开售前,即将开售(用户已领取限购码)
|
|
|
$result['openSoon'] = true;
|
...
|
...
|
|