作者 lyh

gx

@@ -169,6 +169,7 @@ class UpdateSeoTdk extends Command @@ -169,6 +169,7 @@ class UpdateSeoTdk extends Command
169 echo date('Y-m-d H:i:s') . '更新--' . $table . ':id' . $v['id'] . PHP_EOL; 169 echo date('Y-m-d H:i:s') . '更新--' . $table . ':id' . $v['id'] . PHP_EOL;
170 $data = []; 170 $data = [];
171 $json_field = ''; 171 $json_field = '';
  172 + echo date('Y-m-d H:i:s') . json_encode($map) . PHP_EOL;
172 foreach ($map as $ai_key => $field) { 173 foreach ($map as $ai_key => $field) {
173 $field_arr = explode('.', $field); 174 $field_arr = explode('.', $field);
174 if (count($field_arr) > 1) { 175 if (count($field_arr) > 1) {
@@ -188,6 +189,7 @@ class UpdateSeoTdk extends Command @@ -188,6 +189,7 @@ class UpdateSeoTdk extends Command
188 if(!$prompt){ 189 if(!$prompt){
189 continue; 190 continue;
190 } 191 }
  192 + echo date('Y-m-d H:i:s') . 11111111 . PHP_EOL;
191 if (count($field_arr) > 1) { 193 if (count($field_arr) > 1) {
192 if($field_arr[1] == 'title'){ 194 if($field_arr[1] == 'title'){
193 $update[$table]['title']++; 195 $update[$table]['title']++;
@@ -227,6 +229,7 @@ class UpdateSeoTdk extends Command @@ -227,6 +229,7 @@ class UpdateSeoTdk extends Command
227 } 229 }
228 } 230 }
229 }else{ 231 }else{
  232 + echo date('Y-m-d H:i:s') . 22222222222222 . PHP_EOL;
230 $data[$field] = $v[$this->topic_fields[$table]] ?? ''; 233 $data[$field] = $v[$this->topic_fields[$table]] ?? '';
231 //使用核心关键词 234 //使用核心关键词
232 if(in_array($ai_key, array_keys($this->core_keyword_keys))){ 235 if(in_array($ai_key, array_keys($this->core_keyword_keys))){