|
...
|
...
|
@@ -77,9 +77,10 @@ class GeoQuestionRes extends Command |
|
|
|
if(isset($result_data) && $result_data['code'] == 200){
|
|
|
|
$result_data_annotations[] = $result_data['text'];
|
|
|
|
if(!empty($result_data['annotations'])){
|
|
|
|
$url = array_column($result_data['annotations']['url_citation'], 'url');
|
|
|
|
$title = array_column($result_data['annotations']['url_citation'], 'title');
|
|
|
|
$url = array_column(array_column($result_data['annotations'], 'url_citation'), 'url');
|
|
|
|
$title = array_column(array_column($result_data['annotations'], 'url_citation'), 'title');;
|
|
|
|
$result_data_annotations = array_merge($url,$title,$result_data_annotations);
|
|
|
|
dd($result_data_annotations);
|
|
|
|
}
|
|
|
|
$keywords = $this->getKeywords($keywordArr,$result_data_annotations ?? []);
|
|
|
|
$urls = $this->getUrl($urlArr,$result_data_annotations ?? []);
|
...
|
...
|
|