正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -179,7 +179,7 @@ class GeoQuestionRes extends Command | @@ -179,7 +179,7 @@ class GeoQuestionRes extends Command | ||
| 179 | if(!empty($urlArr)){ | 179 | if(!empty($urlArr)){ |
| 180 | $str = implode(',',$result_annotations); | 180 | $str = implode(',',$result_annotations); |
| 181 | foreach ($urlArr as $u_item){ | 181 | foreach ($urlArr as $u_item){ |
| 182 | - $count = substr_count($result_annotations, $u_item); | 182 | + $count = substr_count($str, $u_item); |
| 183 | $url_num[$u_item] = $count; | 183 | $url_num[$u_item] = $count; |
| 184 | if (str_contains($str, $u_item)) { | 184 | if (str_contains($str, $u_item)) { |
| 185 | $url[] = $u_item; | 185 | $url[] = $u_item; |
| @@ -202,7 +202,7 @@ class GeoQuestionRes extends Command | @@ -202,7 +202,7 @@ class GeoQuestionRes extends Command | ||
| 202 | if(!empty($keywordArr) && !empty($result_text)){ | 202 | if(!empty($keywordArr) && !empty($result_text)){ |
| 203 | $str = implode(',',$result_text); | 203 | $str = implode(',',$result_text); |
| 204 | foreach ($keywordArr as $k_item){ | 204 | foreach ($keywordArr as $k_item){ |
| 205 | - $count = substr_count($result_text, $k_item); | 205 | + $count = substr_count($str, $k_item); |
| 206 | $keywords_num[$k_item] = $count; | 206 | $keywords_num[$k_item] = $count; |
| 207 | if (str_contains($str, $k_item)) { | 207 | if (str_contains($str, $k_item)) { |
| 208 | $keywords[] = $k_item; | 208 | $keywords[] = $k_item; |
-
请 注册 或 登录 后发表评论