Authored by runner

age_level to ageLevel

... ... @@ -173,7 +173,10 @@ class SearchData
if (!empty($condition)) {
$param += $condition;
}
if (isset($param['age_level'])) {
$param['ageLevel'] = $param['age_level'];
unset($param['age_level']);
}
return Yohobuy::get(self::getSearchUrl(), $param, $cache);
}
... ...
... ... @@ -327,12 +327,7 @@ class SearchController extends AbstractAction
$tagSale = $this->get('tagSale', 0);
$tagSale = $tagSale === 0 ? true : false;
// 过滤掉值为空的条件
if (isset($condition['age_level']) && $condition['age_level'] === '0'){ //年龄删选的成人id为0
$condition = array_filter($condition);
$condition['age_level'] = '0';
}else{
$condition = array_filter($condition);
}
// /* 模糊搜索关键词 */
// if (isset($condition['query'])) {
... ...