...
|
...
|
@@ -42,6 +42,14 @@ class SearchController extends AbstractAction |
|
|
*/
|
|
|
public function listAction()
|
|
|
{
|
|
|
if ($this->get('query')) {
|
|
|
$activity = SearchData::searchKeyActivity($this->get('query'));
|
|
|
if ($activity['code'] === 200 && isset($activity['data']) && isset($activity['data']['urlobj']) && isset($activity['data']['urlobj']['appUrl'])) {
|
|
|
$this->go($activity['data']['urlobj']['appUrl']);
|
|
|
exit;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$uid = $this->getUid() ? $this->getUid() : $this->get('uid');
|
|
|
$isApp = $this->isApp();
|
|
|
|
...
|
...
|
@@ -237,14 +245,6 @@ 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']['urlobj']) && isset($activity['data']['urlobj']['appUrl'])) {
|
|
|
$this->echoJson(array('jumpActUrl' => $activity['data']['urlobj']['appUrl']));
|
|
|
exit;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$data = \Product\SearchModel::search();
|
|
|
|
|
|
if (empty($data['new'])) {
|
...
|
...
|
|