Authored by 周少峰

男女封面

... ... @@ -166,10 +166,12 @@ class HelperSearch
//再到着
//年终大促
// 年中大促
$gender = isset(self::$options['gender']) ? explode(',', self::$options['gender'])[0] : 0;
$gender = 0;
if (isset(self::$options['gender'])) {
$genderArr = explode(',', self::$options['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) {
... ...