|
...
|
...
|
@@ -22,7 +22,7 @@ class GoogleSearchController extends BaseController |
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/27 13:59
|
|
|
|
*/
|
|
|
|
public function searchList(){
|
|
|
|
public function getSearchList(){
|
|
|
|
$this->request->validate([
|
|
|
|
'search' => 'required'
|
|
|
|
],[
|
|
...
|
...
|
@@ -31,8 +31,7 @@ class GoogleSearchController extends BaseController |
|
|
|
//获取当前项目域名
|
|
|
|
$domain = parse_url($this->user['domain'], PHP_URL_HOST);
|
|
|
|
$googleService = new GoogleSearchService();
|
|
|
|
$googleService->googleSearch();
|
|
|
|
$data = [];
|
|
|
|
$data = $googleService->googleSearch($domain,$this->param['search']);
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|