合并分支 'lyh-server' 到 'master'
GXgeo设置 查看合并请求 !2316
正在显示
1 个修改的文件
包含
2 行增加
和
5 行删除
| @@ -77,12 +77,9 @@ class GeoQuestionRes extends Command | @@ -77,12 +77,9 @@ class GeoQuestionRes extends Command | ||
| 77 | if(isset($result_data) && $result_data['code'] == 200){ | 77 | if(isset($result_data) && $result_data['code'] == 200){ |
| 78 | $result_data_annotations[] = $result_data['text']; | 78 | $result_data_annotations[] = $result_data['text']; |
| 79 | if(!empty($result_data['annotations'])){ | 79 | if(!empty($result_data['annotations'])){ |
| 80 | - $url = array_column($result_data['annotations'], 'url'); | ||
| 81 | - $title = array_column($result_data['annotations'], 'title'); | 80 | + $url = array_column($result_data['annotations']['url_citation'], 'url'); |
| 81 | + $title = array_column($result_data['annotations']['url_citation'], 'title'); | ||
| 82 | $result_data_annotations = array_merge($url,$title,$result_data_annotations); | 82 | $result_data_annotations = array_merge($url,$title,$result_data_annotations); |
| 83 | - dd($result_data['annotations']); | ||
| 84 | - }else{ | ||
| 85 | - continue; | ||
| 86 | } | 83 | } |
| 87 | $keywords = $this->getKeywords($keywordArr,$result_data_annotations ?? []); | 84 | $keywords = $this->getKeywords($keywordArr,$result_data_annotations ?? []); |
| 88 | $urls = $this->getUrl($urlArr,$result_data_annotations ?? []); | 85 | $urls = $this->getUrl($urlArr,$result_data_annotations ?? []); |
-
请 注册 或 登录 后发表评论