合并分支 'akun' 到 'master'
update 查看合并请求 !2475
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -52,7 +52,7 @@ class CheckProjectIndustry extends Command | @@ -52,7 +52,7 @@ class CheckProjectIndustry extends Command | ||
| 52 | $industry_names = implode(',', $industry_list); | 52 | $industry_names = implode(',', $industry_list); |
| 53 | 53 | ||
| 54 | $domainModel = new DomainInfo(); | 54 | $domainModel = new DomainInfo(); |
| 55 | - $list = $domainModel->select(['id', 'domain', 'project_id'])->where('status', 1)->where('project_id', '>', 0)->get()->toArray(); | 55 | + $list = $domainModel->select(['id', 'domain', 'project_id'])->where('status', 1)->where('project_id', '>', 0)->orderBy('project_id', 'asc')->get()->toArray(); |
| 56 | 56 | ||
| 57 | foreach ($list as $value) { | 57 | foreach ($list as $value) { |
| 58 | $project_id = $value['project_id']; | 58 | $project_id = $value['project_id']; |
| @@ -76,7 +76,7 @@ class CheckProjectIndustry extends Command | @@ -76,7 +76,7 @@ class CheckProjectIndustry extends Command | ||
| 76 | 76 | ||
| 77 | $project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray(); | 77 | $project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray(); |
| 78 | 78 | ||
| 79 | - if($project_industry_id){ | 79 | + if ($project_industry_id) { |
| 80 | ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); | 80 | ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); |
| 81 | 81 | ||
| 82 | $is_industry = true; | 82 | $is_industry = true; |
| @@ -97,11 +97,11 @@ class CheckProjectIndustry extends Command | @@ -97,11 +97,11 @@ class CheckProjectIndustry extends Command | ||
| 97 | 97 | ||
| 98 | $project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray(); | 98 | $project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray(); |
| 99 | 99 | ||
| 100 | - if($project_industry_id){ | 100 | + if ($project_industry_id) { |
| 101 | ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); | 101 | ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); |
| 102 | 102 | ||
| 103 | $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success'); | 103 | $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success'); |
| 104 | - }else{ | 104 | + } else { |
| 105 | $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败'); | 105 | $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败'); |
| 106 | } | 106 | } |
| 107 | } else { | 107 | } else { |
-
请 注册 或 登录 后发表评论