如题大概822行,未检测到关键词不采集该条数据 但是检测到关键子也不采集入库呀,看了半天源码没找到哪里解决。求助官方老哥。}
}elseif($params['filter_pass']=='4'){
//未检测到关键词不采集该条数据
$hasKey=false;
foreach ($filterList as $filterStr){
if(stripos($fieldVal,$filterStr)!==false){
$hasKey=true;
break;
}
}
if(!$hasKey){
if(!isset($this->exclude_cont_urls[$contUrlMd5])){
$this->exclude_cont_urls[$contUrlMd5]=array();
}
if(empty($this->first_loop_field)){
$this->exclude_cont_urls[$contUrlMd5][$curUrlMd5]='filter:';
}else{
if(!isset($this->exclude_cont_urls[$contUrlMd5][$curUrlMd5])){
$this->exclude_cont_urls[$contUrlMd5][$curUrlMd5]=array();
}
$this->exclude_cont_urls[$contUrlMd5][$curUrlMd5][$loopIndex]='filter:';
}
}
}
}elseif($params['filter_pass']=='4'){
//未检测到关键词不采集该条数据
$hasKey=false;
foreach ($filterList as $filterStr){
if(stripos($fieldVal,$filterStr)!==false){
$hasKey=true;
break;
}
}
if(!$hasKey){
if(!isset($this->exclude_cont_urls[$contUrlMd5])){
$this->exclude_cont_urls[$contUrlMd5]=array();
}
if(empty($this->first_loop_field)){
$this->exclude_cont_urls[$contUrlMd5][$curUrlMd5]='filter:';
}else{
if(!isset($this->exclude_cont_urls[$contUrlMd5][$curUrlMd5])){
$this->exclude_cont_urls[$contUrlMd5][$curUrlMd5]=array();
}
$this->exclude_cont_urls[$contUrlMd5][$curUrlMd5][$loopIndex]='filter:';
}
}
}