正在显示
1 个修改的文件
包含
2 行增加
和
5 行删除
| @@ -53,14 +53,11 @@ class UpdateRoute extends Command | @@ -53,14 +53,11 @@ class UpdateRoute extends Command | ||
| 53 | * @time :2023/11/20 15:13 | 53 | * @time :2023/11/20 15:13 |
| 54 | */ | 54 | */ |
| 55 | public function handle(){ | 55 | public function handle(){ |
| 56 | - ProjectServer::useProject(91); | ||
| 57 | - $this->getProductKeyword(); | ||
| 58 | - DB::disconnect('custom_mysql'); | ||
| 59 | $projectModel = new Project(); | 56 | $projectModel = new Project(); |
| 60 | $list = $projectModel->list(['type'=>['in',[1,2,3,4]]]); | 57 | $list = $projectModel->list(['type'=>['in',[1,2,3,4]]]); |
| 61 | foreach ($list as $v){ | 58 | foreach ($list as $v){ |
| 62 | ProjectServer::useProject($v['id']); | 59 | ProjectServer::useProject($v['id']); |
| 63 | - $this->getProductKeyword($v['id']); | 60 | + $this->getProductKeyword(); |
| 64 | DB::disconnect('custom_mysql'); | 61 | DB::disconnect('custom_mysql'); |
| 65 | } | 62 | } |
| 66 | echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; | 63 | echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; |
| @@ -73,7 +70,7 @@ class UpdateRoute extends Command | @@ -73,7 +70,7 @@ class UpdateRoute extends Command | ||
| 73 | * @method :post | 70 | * @method :post |
| 74 | * @time :2023/12/8 11:13 | 71 | * @time :2023/12/8 11:13 |
| 75 | */ | 72 | */ |
| 76 | - public function getProductKeyword($project_id){ | 73 | + public function getProductKeyword(){ |
| 77 | $keywordModel = new Keyword(); | 74 | $keywordModel = new Keyword(); |
| 78 | $lists = $keywordModel->list(['status'=>1]); | 75 | $lists = $keywordModel->list(['status'=>1]); |
| 79 | if(!empty($lists)){ | 76 | if(!empty($lists)){ |
-
请 注册 或 登录 后发表评论