作者 刘锟

update

... ... @@ -76,11 +76,13 @@ class CheckProjectIndustry extends Command
$project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray();
ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
if($project_industry_id){
ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
$is_industry = true;
$is_industry = true;
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
}
}
}
... ... @@ -95,9 +97,13 @@ class CheckProjectIndustry extends Command
$project_industry_id = ProjectIndustry::where('status', 1)->whereIn('industry_name', $project_industry_name)->pluck('id')->toArray();
ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
if($project_industry_id){
ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
}else{
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败');
}
} else {
$this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败');
}
... ...