|
...
|
...
|
@@ -83,12 +83,13 @@ class CreateKeywordLogic extends BaseLogic |
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
$except_k = ['Quality','Philippines','USA','UK','America','China','Wholesale','Hot Sale','Cheap','cheap','price','pricelist','hot sale','Price','Pricelist','With ','For ','And ','Oem','Odm','Supplier','Manufacturer','CE Certification','Factory','Exporters','Company','Companies','Suppliers','Manufacturers','Factories','Company','Companies','Exporters','Exporter','Buy ',' Buy','Where ','What ','When ','How ','Which ','Producer','Producers','Best Selling','Hot Selling','Near','Chinese','India','use','high quality','discount','online','custom','customized','Enterprise','Agent','Plant','Refinery','Foundry','Maker','Distributor'];
|
|
|
|
$except_k = array_map('strtolower', $except_k);
|
|
|
|
$filterKeywords = [];
|
|
|
|
foreach ($this->param['keyword'] as $k=>$v){
|
|
|
|
if(in_array(strtolower($v),$except_k)){
|
|
|
|
unset($this->param['keyword'][$k]);
|
|
|
|
$filterKeywords[] = $v;
|
|
|
|
foreach ($this->param['keyword'] as $k=>$keyword){
|
|
|
|
foreach ($except_k as $exc_k){
|
|
|
|
if(strpos(strtolower($keyword),strtolower($exc_k)) !== false){
|
|
|
|
unset($this->param['keyword'][$k]);
|
|
|
|
$filterKeywords[] = $keyword;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$prefix_keyword = $this->prefixKeyword($this->param['prefix'] ?? [],$this->param['keyword'],$except_k);
|
...
|
...
|
|