Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
3 个修改的文件
包含
9 行增加
和
8 行删除
| @@ -55,7 +55,7 @@ class UpdateRoute extends Command | @@ -55,7 +55,7 @@ class UpdateRoute extends Command | ||
| 55 | */ | 55 | */ |
| 56 | public function handle(){ | 56 | public function handle(){ |
| 57 | $projectModel = new Project(); | 57 | $projectModel = new Project(); |
| 58 | - $list = $projectModel->list(['id'=>917]); | 58 | + $list = $projectModel->list(['id'=>672]); |
| 59 | $data = []; | 59 | $data = []; |
| 60 | foreach ($list as $v){ | 60 | foreach ($list as $v){ |
| 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 61 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| @@ -83,12 +83,13 @@ class CreateKeywordLogic extends BaseLogic | @@ -83,12 +83,13 @@ class CreateKeywordLogic extends BaseLogic | ||
| 83 | return $this->success($data); | 83 | return $this->success($data); |
| 84 | } | 84 | } |
| 85 | $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']; | 85 | $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']; |
| 86 | - $except_k = array_map('strtolower', $except_k); | ||
| 87 | $filterKeywords = []; | 86 | $filterKeywords = []; |
| 88 | - foreach ($this->param['keyword'] as $k=>$v){ | ||
| 89 | - if(in_array(strtolower($v),$except_k)){ | ||
| 90 | - unset($this->param['keyword'][$k]); | ||
| 91 | - $filterKeywords[] = $v; | 87 | + foreach ($this->param['keyword'] as $k=>$keyword){ |
| 88 | + foreach ($except_k as $exc_k){ | ||
| 89 | + if(strpos(strtolower($keyword),strtolower($exc_k)) !== false){ | ||
| 90 | + unset($this->param['keyword'][$k]); | ||
| 91 | + $filterKeywords[] = $keyword; | ||
| 92 | + } | ||
| 92 | } | 93 | } |
| 93 | } | 94 | } |
| 94 | $prefix_keyword = $this->prefixKeyword($this->param['prefix'] ?? [],$this->param['keyword'],$except_k); | 95 | $prefix_keyword = $this->prefixKeyword($this->param['prefix'] ?? [],$this->param['keyword'],$except_k); |
| @@ -25,7 +25,7 @@ class AiCommandRequest extends FormRequest | @@ -25,7 +25,7 @@ class AiCommandRequest extends FormRequest | ||
| 25 | { | 25 | { |
| 26 | return [ | 26 | return [ |
| 27 | 'key'=>'required', | 27 | 'key'=>'required', |
| 28 | - 'scene'=>'required', | 28 | +// 'scene'=>'required', |
| 29 | 'ai'=>'required', | 29 | 'ai'=>'required', |
| 30 | ]; | 30 | ]; |
| 31 | } | 31 | } |
| @@ -34,7 +34,7 @@ class AiCommandRequest extends FormRequest | @@ -34,7 +34,7 @@ class AiCommandRequest extends FormRequest | ||
| 34 | { | 34 | { |
| 35 | return [ | 35 | return [ |
| 36 | 'key.required'=>'key不能为空', | 36 | 'key.required'=>'key不能为空', |
| 37 | - 'scene.required' => '场景不能为空', | 37 | +// 'scene.required' => '场景不能为空', |
| 38 | 'ai.required'=>'指令你能为空', | 38 | 'ai.required'=>'指令你能为空', |
| 39 | ]; | 39 | ]; |
| 40 | } | 40 | } |
-
请 注册 或 登录 后发表评论