作者 lyh

gx脚本锚文本数量

... ... @@ -46,10 +46,10 @@ class lyhDemo extends Command
protected $description = '更新路由';
public function handle(){
$projectIds = DB::table('gl_project_ai_setting')
$projectIds = DB::table('gl_project_ai_setting_copy1')
->whereIn('mch_id', function ($query) {
$query->select('mch_id')
->from('gl_project_ai_setting')
->from('gl_project_ai_setting_copy1')
->groupBy('mch_id')
->havingRaw('COUNT(*) > 1');
})
... ... @@ -92,13 +92,13 @@ class lyhDemo extends Command
if(empty($info['is_ai_blog'])){
$info['is_ai_blog'] = 1;
}
try {
// try {
$this->setAiBlog($info['id'],$info['main_lang_id'],$info['is_ai_blog'] ?? 0,
$info['company']??"", $info['deploy_optimize']['company_en_name'] ?? '',
$info['deploy_optimize']['company_en_description'] ?? '',$info['is_ai_video'] ?? 0,$info['is_related_video'] ?? 0);
}catch (\Exception $e){
continue;
}
// }catch (\Exception $e){
// continue;
// }
}
return true;
... ...