作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !2474
@@ -76,6 +76,7 @@ class CheckProjectIndustry extends Command @@ -76,6 +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 ProjectIndustryRelated::saveRelated($project_id, $project_industry_id); 80 ProjectIndustryRelated::saveRelated($project_id, $project_industry_id);
80 81
81 $is_industry = true; 82 $is_industry = true;
@@ -83,6 +84,7 @@ class CheckProjectIndustry extends Command @@ -83,6 +84,7 @@ class CheckProjectIndustry extends Command
83 $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success'); 84 $this->output('project_id:' . $project_id . ' , domain:' . $domain . ' | success');
84 } 85 }
85 } 86 }
  87 + }
86 88
87 DB::disconnect('custom_mysql'); 89 DB::disconnect('custom_mysql');
88 } 90 }
@@ -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
  100 + if($project_industry_id){
98 ProjectIndustryRelated::saveRelated($project_id, $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 }