正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -153,7 +153,9 @@ class UpdateSeoTdk extends Command | @@ -153,7 +153,9 @@ class UpdateSeoTdk extends Command | ||
| 153 | { | 153 | { |
| 154 | $data = []; | 154 | $data = []; |
| 155 | $update = [ | 155 | $update = [ |
| 156 | - 'created_at'=>date('Y-m-d H:i:s') | 156 | + 'created_at'=>date('Y-m-d H:i:s'), |
| 157 | + 'updated_at'=>date('Y-m-d H:i:s'), | ||
| 158 | + 'project_id'=>$project_id, | ||
| 157 | ];//更新统计 | 159 | ];//更新统计 |
| 158 | $ai_commands = AiCommand::where('is_batch', 1)->select('key', 'scene', 'ai')->get()->toArray(); | 160 | $ai_commands = AiCommand::where('is_batch', 1)->select('key', 'scene', 'ai')->get()->toArray(); |
| 159 | $ai_commands = Arr::setValueToKey($ai_commands, 'key'); | 161 | $ai_commands = Arr::setValueToKey($ai_commands, 'key'); |
| @@ -189,7 +191,6 @@ class UpdateSeoTdk extends Command | @@ -189,7 +191,6 @@ class UpdateSeoTdk extends Command | ||
| 189 | if(!$prompt){ | 191 | if(!$prompt){ |
| 190 | continue; | 192 | continue; |
| 191 | } | 193 | } |
| 192 | - echo date('Y-m-d H:i:s') . 11111111 . PHP_EOL; | ||
| 193 | if (count($field_arr) > 1) { | 194 | if (count($field_arr) > 1) { |
| 194 | if($field_arr[1] == 'title'){ | 195 | if($field_arr[1] == 'title'){ |
| 195 | $update[$table]['title']++; | 196 | $update[$table]['title']++; |
| @@ -229,7 +230,6 @@ class UpdateSeoTdk extends Command | @@ -229,7 +230,6 @@ class UpdateSeoTdk extends Command | ||
| 229 | } | 230 | } |
| 230 | } | 231 | } |
| 231 | }else{ | 232 | }else{ |
| 232 | - echo date('Y-m-d H:i:s') . 22222222222222 .$field . PHP_EOL; | ||
| 233 | $data[$field] = $v[$this->topic_fields[$table]] ?? ''; | 233 | $data[$field] = $v[$this->topic_fields[$table]] ?? ''; |
| 234 | //使用核心关键词 | 234 | //使用核心关键词 |
| 235 | if(in_array($ai_key, array_keys($this->core_keyword_keys))){ | 235 | if(in_array($ai_key, array_keys($this->core_keyword_keys))){ |
| @@ -246,7 +246,6 @@ class UpdateSeoTdk extends Command | @@ -246,7 +246,6 @@ class UpdateSeoTdk extends Command | ||
| 246 | } | 246 | } |
| 247 | } | 247 | } |
| 248 | } | 248 | } |
| 249 | - echo date('Y-m-d H:i:s') . 333333 . PHP_EOL; | ||
| 250 | } | 249 | } |
| 251 | } | 250 | } |
| 252 | } | 251 | } |
-
请 注册 或 登录 后发表评论