...
|
...
|
@@ -191,19 +191,19 @@ class HelperSearch |
|
|
$isSale = false;
|
|
|
}
|
|
|
$gender = 0;
|
|
|
if (isset(self::$options['gender'])) {
|
|
|
$genderArr = explode(',', self::$options['gender']);
|
|
|
if (isset(self::$params['gender'])) {
|
|
|
$genderArr = explode(',', self::$params['gender']);
|
|
|
$gender = $genderArr[0];
|
|
|
}
|
|
|
foreach($val['goods_list'] as $k => $v){
|
|
|
$goods_list[$k]['url'] = Helpers::getUrlBySkc($val['product_id'], $v['goods_id'], $val['cn_alphabet']);
|
|
|
//女封
|
|
|
if (isset($v['cover_1']) && $gender == 1) {
|
|
|
$val['default_images'] = $v['images_url'];
|
|
|
}
|
|
|
//男封
|
|
|
if (isset($v['cover_2']) && $gender == 2) {
|
|
|
$val['default_images'] = $v['images_url'];
|
|
|
if (isset($v['cover_1']) && !empty($v['cover_1']) && $gender == 1) {
|
|
|
$val['default_images'] = $v['cover_1'];
|
|
|
}
|
|
|
//女封
|
|
|
if (isset($v['cover_2']) && !empty($v['cover_2']) && $gender == 2) {
|
|
|
$val['default_images'] = $v['cover_2'];
|
|
|
}
|
|
|
//筛选符合颜色条件的封面图片
|
|
|
if (isset($params['color']) && $params['color'] == $v['color_id']) {
|
...
|
...
|
|