作者 lyh

gx

... ... @@ -169,6 +169,7 @@ class UpdateSeoTdk extends Command
echo date('Y-m-d H:i:s') . '更新--' . $table . ':id' . $v['id'] . PHP_EOL;
$data = [];
$json_field = '';
echo date('Y-m-d H:i:s') . json_encode($map) . PHP_EOL;
foreach ($map as $ai_key => $field) {
$field_arr = explode('.', $field);
if (count($field_arr) > 1) {
... ... @@ -188,6 +189,7 @@ 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']++;
... ... @@ -227,6 +229,7 @@ class UpdateSeoTdk extends Command
}
}
}else{
echo date('Y-m-d H:i:s') . 22222222222222 . PHP_EOL;
$data[$field] = $v[$this->topic_fields[$table]] ?? '';
//使用核心关键词
if(in_array($ai_key, array_keys($this->core_keyword_keys))){
... ...