|
...
|
...
|
@@ -52,7 +52,7 @@ class CheckProjectIndustry extends Command |
|
|
|
$industry_names = implode(',', $industry_list);
|
|
|
|
|
|
|
|
$domainModel = new DomainInfo();
|
|
|
|
$list = $domainModel->select(['id', 'domain', 'project_id'])->where('status', 1)->where('project_id', '>', 0)->get()->toArray();
|
|
|
|
$list = $domainModel->select(['id', 'domain', 'project_id'])->where('status', 1)->where('project_id', '>', 0)->orderBy('project_id', 'asc')->get()->toArray();
|
|
|
|
|
|
|
|
foreach ($list as $value) {
|
|
|
|
$project_id = $value['project_id'];
|
|
...
|
...
|
@@ -76,7 +76,7 @@ class CheckProjectIndustry extends Command |
|
|
|
|
|
|
|
$project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray();
|
|
|
|
|
|
|
|
if($project_industry_id){
|
|
|
|
if ($project_industry_id) {
|
|
|
|
ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
|
|
|
|
|
|
|
|
$is_industry = true;
|
|
...
|
...
|
@@ -97,11 +97,11 @@ class CheckProjectIndustry extends Command |
|
|
|
|
|
|
|
$project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray();
|
|
|
|
|
|
|
|
if($project_industry_id){
|
|
|
|
if ($project_industry_id) {
|
|
|
|
ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
|
|
|
|
|
|
|
|
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
|
|
|
|
}else{
|
|
|
|
} else {
|
|
|
|
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败');
|
|
|
|
}
|
|
|
|
} else {
|
...
|
...
|
|