...
|
...
|
@@ -237,6 +237,13 @@ class SearchController extends AbstractAction |
|
|
{
|
|
|
header('Access-Control-Allow-Origin:*');
|
|
|
|
|
|
if ($this->get('query')) {
|
|
|
$activity = SearchData::searchKeyActivity($this->get('query'));
|
|
|
if ($activity['code'] === 200 && isset($activity['data']) && isset($activity['data']['url'])) {
|
|
|
$this->go($activity['data']['url']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$data = \Product\SearchModel::search();
|
|
|
|
|
|
if (empty($data['new'])) {
|
...
|
...
|
|