作者 lyh

gx

@@ -152,13 +152,11 @@ class UpdateSeoTdk extends Command @@ -152,13 +152,11 @@ class UpdateSeoTdk extends Command
152 public function seo_tdk($project_id) 152 public function seo_tdk($project_id)
153 { 153 {
154 $data = []; 154 $data = [];
155 - $update = [  
156 - 'created_at'=>date('Y-m-d H:i:s'),  
157 - ];//更新统计 155 + $update = [];//更新统计
158 $ai_commands = AiCommand::where('is_batch', 1)->select('key', 'scene', 'ai')->get()->toArray(); 156 $ai_commands = AiCommand::where('is_batch', 1)->select('key', 'scene', 'ai')->get()->toArray();
159 $ai_commands = Arr::setValueToKey($ai_commands, 'key'); 157 $ai_commands = Arr::setValueToKey($ai_commands, 'key');
160 foreach ($this->maps as $table => $map) { 158 foreach ($this->maps as $table => $map) {
161 - $update[$table] = ['total_page'=>0, 'title'=>0, 'keyword'=>0, 'des'=>0]; 159 + $update[$table] = ['total_page'=>0, 'title'=>0, 'keyword'=>0, 'des'=>0, 'created_at'=>date('Y-m-d H:i:s'),];
162 echo date('Y-m-d H:i:s') . '更新--' . $table . ': 项目id' . $project_id . PHP_EOL; 160 echo date('Y-m-d H:i:s') . '更新--' . $table . ': 项目id' . $project_id . PHP_EOL;
163 $list = DB::connection('custom_mysql')->table($table)->get()->toArray(); 161 $list = DB::connection('custom_mysql')->table($table)->get()->toArray();
164 if (!empty($list)) { 162 if (!empty($list)) {