Authored by 周少峰

search list

... ... @@ -196,12 +196,9 @@ class BrandModel
break;
}
foreach ($list['data'] as $key => $val) {
$result[$val['brandDomain']] = array(
'brandDomain' => $val['brandDomain'],
'brandId' => $val['brandId'],
$result[] = array(
'name' => $val['searchTerms'],
'searchTime' => $val['searchTime'],
'url' => isset($val['brandDomain']) ? Helpers::url('', '', $val['brandDomain']) : '',
);
}
} while(false);
... ... @@ -224,10 +221,7 @@ class BrandModel
}
foreach ($hot['data'] as $key => $val) {
$result[] = array(
'brandId' => isset($val['brandId']) ? $val['brandId'] : '',
'brandDomain' => isset($val['brandDomain']) ? $val['brandDomain'] : '',
'name' => isset($val['brandName']) ? $val['brandName'] : '',
'url' => isset($val['brandDomain']) ? Helpers::url('', '', $val['brandDomain']) : '',
);
}
} while(false);
... ...
... ... @@ -82,13 +82,11 @@ class BrandController extends AbstractAction
$result = array();
$uid = $this->getUid();
$brandName = $this->get('brandName');
$brandDomain = $this->get('brandDomain');
$brandId = $this->get('brandId');
do {
if (empty($brandId) || empty($uid) || empty($brandDomain) || empty($brandName)) {
if (empty($uid) || empty($brandName)) {
break;
}
$records = time().'_'.$brandName.'_'.$brandDomain.'_'.$brandId;
$records = time().'_'.$brandName;
$result = BrandData::branchSearchHistory($uid, $records);
} while(false);
... ...