作者 赵彬吉

update

@@ -169,7 +169,7 @@ class UpdateSeoTdk extends Command @@ -169,7 +169,7 @@ class UpdateSeoTdk extends Command
169 foreach ($this->maps as $table => $map) { 169 foreach ($this->maps as $table => $map) {
170 $update[$table] = ['total_page'=>0, 'title'=>0, 'keyword'=>0, 'des'=>0]; 170 $update[$table] = ['total_page'=>0, 'title'=>0, 'keyword'=>0, 'des'=>0];
171 echo date('Y-m-d H:i:s') . '更新--' . $table . ': 项目id' . $project_id . PHP_EOL; 171 echo date('Y-m-d H:i:s') . '更新--' . $table . ': 项目id' . $project_id . PHP_EOL;
172 - $list = DB::connection('custom_mysql')->table($table)->get(); 172 + $list = DB::connection('custom_mysql')->table($table)->select('id')->get();
173 if (!empty($list)) { 173 if (!empty($list)) {
174 $list = $list->toArray(); 174 $list = $list->toArray();
175 foreach ($list as $v) { 175 foreach ($list as $v) {