Authored by whb

最新上架商品添加gender参数

... ... @@ -202,8 +202,12 @@ class HomeModel
'order' => 's_t_desc',
'shelve_time' => strtotime("-60 days") . ',' . time()
);
//男首频道最新上架参数是gender=1,3
if($channel == self::COOKIE_NAME_BOYS) {
$params['gender'] = '1,3';
}
//女首频道最新上架参数是gender=2,3
if($channel == self::COOKIE_NAME_GIRLS) {
else if($channel == self::COOKIE_NAME_GIRLS) {
$params['gender'] = '2,3';
}
// 最新上架分类
... ...