...
|
...
|
@@ -21,11 +21,13 @@ class SearchController extends WebAction |
|
|
*/
|
|
|
public function suggestAction()
|
|
|
{
|
|
|
$suggest = '';
|
|
|
$query = rawurldecode($this->get('query'));
|
|
|
if ($query) {
|
|
|
$param['query'] = $query;
|
|
|
SearchModel::getSuggest($param);
|
|
|
$suggest = SearchModel::getSuggest($param);
|
|
|
}
|
|
|
echo $suggest;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -35,7 +37,6 @@ class SearchController extends WebAction |
|
|
{
|
|
|
$condition['msort'] = $this->get('msort');
|
|
|
$size = SearchModel::getSortSize($condition);
|
|
|
print_r($size); exit;
|
|
|
$this->echoJson($size);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|