...
|
...
|
@@ -151,6 +151,20 @@ class NewsaleController extends AbstractAction |
|
|
// 转换频道
|
|
|
$channel = $this->get('channel') ? $this->get('channel') : Helpers::getChannelByCookie();
|
|
|
|
|
|
// 产品吴婷要求这么做,目的是保持性别中的所有性别和当前频道性别一致
|
|
|
if ($gender === '1,2,3') {
|
|
|
switch ($channel) {
|
|
|
case 1:
|
|
|
$gender = '1,3';
|
|
|
break;
|
|
|
case 2:
|
|
|
$gender = '2,3';
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$data = NewsaleData::selectNewSaleProducts(
|
|
|
$gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order, null
|
|
|
);
|
...
|
...
|
|