作者 lyh

变更数据

@@ -135,9 +135,9 @@ class GeoQuestionRes extends Command @@ -135,9 +135,9 @@ class GeoQuestionRes extends Command
135 // 余弦相似度 135 // 余弦相似度
136 if (FALSE == empty($cosine_result['similarity'])){ 136 if (FALSE == empty($cosine_result['similarity'])){
137 $cosine = intval($cosine_result['similarity'] * 10000) / 100; 137 $cosine = intval($cosine_result['similarity'] * 10000) / 100;
138 - if($cosine > 60 && $cosine < 70){  
139 - $cosine = mt_rand(90 * 100, 90 * 100) / 100;  
140 - } 138 +// if($cosine > 60 && $cosine < 70){
  139 +// $cosine = mt_rand(90 * 100, 90 * 100) / 100;
  140 +// }
141 } 141 }
142 142
143 // 语句拆解结果 143 // 语句拆解结果
@@ -151,12 +151,12 @@ class GeoQuestionRes extends Command @@ -151,12 +151,12 @@ class GeoQuestionRes extends Command
151 } 151 }
152 $keyword_num = json_encode($hit_keyword['keywords_num'] ?? [],true); 152 $keyword_num = json_encode($hit_keyword['keywords_num'] ?? [],true);
153 //todo::药明康德项目单独记录命中的url 153 //todo::药明康德项目单独记录命中的url
154 - if($taskInfo['project_id'] == 4533){  
155 - //查询当前项目的link  
156 - $linkModel = new GeoLink();  
157 - $urlArr = $linkModel->selectField(['project_id' => $taskInfo['project_id']],'url');  
158 - $taskInfo['url'] = array_values(array_unique(array_merge($taskInfo['url'], $urlArr)));  
159 - } 154 +// if($taskInfo['project_id'] == 4533){
  155 +// //查询当前项目的link
  156 +// $linkModel = new GeoLink();
  157 +// $urlArr = $linkModel->selectField(['project_id' => $taskInfo['project_id']],'url');
  158 +// $taskInfo['url'] = array_values(array_unique(array_merge($taskInfo['url'], $urlArr)));
  159 +// }
160 $hit_url = $this->getUrl($taskInfo['url'],$hit_data); 160 $hit_url = $this->getUrl($taskInfo['url'],$hit_data);
161 if (!empty($hit_url['url'])) { 161 if (!empty($hit_url['url'])) {
162 $hit++; 162 $hit++;