improved search module

This commit is contained in:
huangjx
2022-02-26 21:47:18 +08:00
parent ea07560b5e
commit 0d689ca2dd
6 changed files with 66 additions and 25 deletions

View File

@@ -32,9 +32,7 @@ class SearchController extends Controller
$site = Helper::sanitize($this->request->getParam('select-value-search'));
$this->search->setSite($site);
$data = $this->search->go($keyword);
$resp['title'] = ['title', 'seeders', 'info', 'actions'];
$resp['row'] = $data;
return new JSONResponse($resp);
return new JSONResponse($data);
}
}