作者 lyh

Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

... ... @@ -55,7 +55,7 @@ class UpdateRoute extends Command
*/
public function handle(){
$projectModel = new Project();
$list = $projectModel->list(['id'=>917]);
$list = $projectModel->list(['id'=>672]);
$data = [];
foreach ($list as $v){
echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
... ...
... ... @@ -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);
... ...