...
|
...
|
@@ -230,6 +230,7 @@ class NewsaleModel |
|
|
* 筛选出来的热销排行榜商品数据处理
|
|
|
*
|
|
|
* @param string $gender "1,3"表示男, "2,3"表示女, "1,2,3"表示全部
|
|
|
* $param integer $channel 1表示男,2表示女,3表示潮童,4表示创意生活
|
|
|
* @param string|null $sort 品类ID查询参数
|
|
|
* @param integer|null $tab_id Tab的ID
|
|
|
* @param boolean $notab 时候返回顶部tab的数据,默认返回
|
...
|
...
|
@@ -237,11 +238,11 @@ class NewsaleModel |
|
|
* @param integer $page 分页第几页
|
|
|
* @return array 处理之后的数据
|
|
|
*/
|
|
|
public static function selectTopData($gender, $sort, $tab_id, $notab, $limit, $page)
|
|
|
public static function selectTopData($gender, $channel, $sort, $tab_id, $notab, $limit, $page)
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
$data = NewsaleData::getTopProducts($gender, $sort, $tab_id, $limit, $page);
|
|
|
$data = NewsaleData::getTopProducts($gender, $channel, $sort, $tab_id, $limit, $page);
|
|
|
|
|
|
if (isset($data['code']) && $data['code'] === 200 && isset($data['data']['product_list'])) {
|
|
|
$result = NewSaleProcess::topData($data['data'], $notab, $limit, $page);
|
...
|
...
|
|