作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !2474
@@ -76,11 +76,13 @@ class CheckProjectIndustry extends Command @@ -76,11 +76,13 @@ 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 - ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); 79 + if($project_industry_id){
  80 + ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
80 81
81 - $is_industry = true; 82 + $is_industry = true;
82 83
83 - $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success'); 84 + $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
  85 + }
84 } 86 }
85 } 87 }
86 88
@@ -95,9 +97,13 @@ class CheckProjectIndustry extends Command @@ -95,9 +97,13 @@ class CheckProjectIndustry extends Command
95 97
96 $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();
97 99
98 - ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); 100 + if($project_industry_id){
  101 + ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
99 102
100 - $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success'); 103 + $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
  104 + }else{
  105 + $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败');
  106 + }
101 } else { 107 } else {
102 $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败'); 108 $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | AI分析行业失败');
103 } 109 }