Authored by hf

fixes bug to brand list not return brand id

... ... @@ -91,7 +91,7 @@ class IndexController extends AbstractAction
$brandId = 0;
if (isset($brandIds[0])) {
$brandId = $brandIds[0];
}
}
// 当前的登录用户UID
$uid = $this->getUid();
... ... @@ -114,6 +114,10 @@ class IndexController extends AbstractAction
'gender' => FILTER_DEFAULT,
'p_d' => FILTER_DEFAULT,), false);
$condition['brand'] = $brandId;
if ($brandId === 0) {
$condition['query'] = $domain;
}
if (isset($condition['gender'])) {
$condition['gender'] = rawurldecode($condition['gender']);
... ...