...
|
...
|
@@ -5,7 +5,7 @@ namespace Plugin\DataProcess; |
|
|
use LibModels\Wap\Product\SearchData;
|
|
|
use Plugin\Helpers;
|
|
|
use Plugin\Images;
|
|
|
|
|
|
use LibModels\Wap\Product\DetailData;
|
|
|
/**
|
|
|
* 店铺楼层数据处理类
|
|
|
*/
|
...
|
...
|
@@ -348,18 +348,22 @@ class ShopProcess |
|
|
self::$shopData['hotList'][] = $goods;
|
|
|
}
|
|
|
} else {
|
|
|
$productSkn = array();
|
|
|
foreach ($data as $val) {
|
|
|
$goods = array(
|
|
|
'url' => Helpers::getUrlBySkc($val['productId'], $val['goodsId'], $val['cnAlphabet']),
|
|
|
'img' => Helpers::getImageUrl($val['src'], 235, 314) . '?imageView/2/w/235/h/314',
|
|
|
'productName' => $val['productName'],
|
|
|
'salesPrice' => '¥' . $val['salesPrice'],
|
|
|
'presentPrice' => '¥' . $val['salesPrice']
|
|
|
);
|
|
|
if (!empty(self::$appVersion)) {
|
|
|
$goods['url'] .= '?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":' . $val['productSkn'] . '}}';
|
|
|
$productSkn[] = $val['productSkn'];
|
|
|
}
|
|
|
|
|
|
$product = DetailData::productBatch($productSkn);
|
|
|
if ($product['code'] === 200 && isset($product['data']['product_list'])) {
|
|
|
|
|
|
foreach ($product['data']['product_list'] as $key => $value) {
|
|
|
$goods = Helpers::formatProduct($value, false, false, false, 235, 314, self::$appVersion);
|
|
|
//店铺人气商品不须要其它标签、即将售罄
|
|
|
$goods['tags'] = array();
|
|
|
$goods['is_soon_sold_out'] = false;
|
|
|
$goods['tags']['is_hot'] = true;
|
|
|
self::$shopData['hotList'][] = $goods;
|
|
|
}
|
|
|
self::$shopData['hotList'][] = $goods;
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|