作者 lyh

变更数据

@@ -135,11 +135,10 @@ class GeoQuestionRes extends Command @@ -135,11 +135,10 @@ 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 -  
143 // 语句拆解结果 142 // 语句拆解结果
144 if (FALSE == empty($cosine_result['split_results'])){ 143 if (FALSE == empty($cosine_result['split_results'])){
145 $similarity = $cosine_result['split_results']; 144 $similarity = $cosine_result['split_results'];
@@ -151,12 +150,12 @@ class GeoQuestionRes extends Command @@ -151,12 +150,12 @@ class GeoQuestionRes extends Command
151 } 150 }
152 $keyword_num = json_encode($hit_keyword['keywords_num'] ?? [],true); 151 $keyword_num = json_encode($hit_keyword['keywords_num'] ?? [],true);
153 //todo::药明康德项目单独记录命中的url 152 //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 -// } 153 + if($taskInfo['project_id'] == 4533){
  154 + //查询当前项目的link
  155 + $linkModel = new GeoLink();
  156 + $urlArr = $linkModel->selectField(['project_id' => $taskInfo['project_id']],'url');
  157 + $taskInfo['url'] = array_values(array_unique(array_merge($taskInfo['url'], $urlArr)));
  158 + }
160 $hit_url = $this->getUrl($taskInfo['url'],$hit_data); 159 $hit_url = $this->getUrl($taskInfo['url'],$hit_data);
161 if (!empty($hit_url['url'])) { 160 if (!empty($hit_url['url'])) {
162 $hit++; 161 $hit++;