作者 lyh

gx

... ... @@ -153,7 +153,9 @@ class UpdateSeoTdk extends Command
{
$data = [];
$update = [
'created_at'=>date('Y-m-d H:i:s')
'created_at'=>date('Y-m-d H:i:s'),
'updated_at'=>date('Y-m-d H:i:s'),
'project_id'=>$project_id,
];//更新统计
$ai_commands = AiCommand::where('is_batch', 1)->select('key', 'scene', 'ai')->get()->toArray();
$ai_commands = Arr::setValueToKey($ai_commands, 'key');
... ... @@ -189,7 +191,6 @@ class UpdateSeoTdk extends Command
if(!$prompt){
continue;
}
echo date('Y-m-d H:i:s') . 11111111 . PHP_EOL;
if (count($field_arr) > 1) {
if($field_arr[1] == 'title'){
$update[$table]['title']++;
... ... @@ -229,7 +230,6 @@ class UpdateSeoTdk extends Command
}
}
}else{
echo date('Y-m-d H:i:s') . 22222222222222 .$field . PHP_EOL;
$data[$field] = $v[$this->topic_fields[$table]] ?? '';
//使用核心关键词
if(in_array($ai_key, array_keys($this->core_keyword_keys))){
... ... @@ -246,7 +246,6 @@ class UpdateSeoTdk extends Command
}
}
}
echo date('Y-m-d H:i:s') . 333333 . PHP_EOL;
}
}
}
... ...