作者 赵彬吉

update

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