合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !2156
正在显示
1 个修改的文件
包含
17 行增加
和
1 行删除
| @@ -18,6 +18,7 @@ use App\Models\Ai\AiCommand; | @@ -18,6 +18,7 @@ use App\Models\Ai\AiCommand; | ||
| 18 | use App\Models\Com\NoticeLog; | 18 | use App\Models\Com\NoticeLog; |
| 19 | use App\Models\Com\V6WeeklyReport; | 19 | use App\Models\Com\V6WeeklyReport; |
| 20 | use App\Models\Product\Category; | 20 | use App\Models\Product\Category; |
| 21 | +use App\Models\Project\AggregateKeywordAffix; | ||
| 21 | use App\Models\Project\AiBlogTask; | 22 | use App\Models\Project\AiBlogTask; |
| 22 | use App\Models\Project\DeployBuild; | 23 | use App\Models\Project\DeployBuild; |
| 23 | use App\Models\Project\DeployOptimize; | 24 | use App\Models\Project\DeployOptimize; |
| @@ -58,7 +59,22 @@ class lyhDemo extends Command | @@ -58,7 +59,22 @@ class lyhDemo extends Command | ||
| 58 | protected $description = '更新路由'; | 59 | protected $description = '更新路由'; |
| 59 | 60 | ||
| 60 | public function handle(){ | 61 | public function handle(){ |
| 61 | - | 62 | + $aggregateKeywordAffixModel = new AggregateKeywordAffix(); |
| 63 | + $info = $aggregateKeywordAffixModel->read(['project_id'=>3298]); | ||
| 64 | + $projectModel = new Project(); | ||
| 65 | + $lists = $projectModel->list(['delete_status' => 0,'project_type'=>0,'extend_type'=>0,'type'=>2], 'id', ['id']); | ||
| 66 | + foreach ($lists as $item){ | ||
| 67 | + if(in_array($item['id'],[467,110,3298])){ | ||
| 68 | + continue; | ||
| 69 | + } | ||
| 70 | + $data = [ | ||
| 71 | + 'project_id'=>$item['id'], | ||
| 72 | + 'prefix'=>$info['prefix'], | ||
| 73 | + 'suffix'=>$info['suffix'] | ||
| 74 | + ]; | ||
| 75 | + $aggregateKeywordAffixModel->addReturnId($data); | ||
| 76 | + } | ||
| 77 | + return true; | ||
| 62 | } | 78 | } |
| 63 | 79 | ||
| 64 | public function _actionTemplateMain(){ | 80 | public function _actionTemplateMain(){ |
-
请 注册 或 登录 后发表评论