table)) { echo $this->table . " 不存在 跳过\n"; return; } $table = DB::table($this->table)->where('key', 'global')->first(); if (!$table) { $config['image_extentions'] = ['0' => 'gif', '1' => 'jpg', '2' => 'jpeg', '3' => 'png']; $config['image_limit'] = 5000; $config['audio_extentions'] = ['0' => 'mp3', '1' => 'mp4']; $config['audio_limit'] = 5000; $config['thumb_width'] = 800; $config['zip_percentage'] = 100; DB::table($this->table)->insert([ 'key' => 'global', 'value' => serialize($config), 'created_at' => time(), 'updated_at' => time() ]); } } }