Authored by 周少峰

branch format

... ... @@ -197,11 +197,8 @@ class BrandModel
}
foreach ($list['data'] as $key => $val) {
$result[$val['brandDomain']] = array(
'brandDomain' => $val['brandDomain'],
'brandId' => $val['brandId'],
'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);
... ...