deleteDirectory(base_path('business/business_font')); \Log::debug('----business dir delete----'); } //解压 if (file_exists($path)) { $zip = new \ZipArchive(); $res = $zip->open($path); if ($res === true) { try { $zip->extractTo(base_path('business')); } catch (\Exception $e) { $zip->close(); \Log::debug('----business zip 解压失败----'); return false; } } else { $zip->close(); \Log::debug('----business zip 解压下载失败----'); return false; } $zip->close(); \Log::debug('----business zip 解压ok----'); } //删除压缩文件 if (file_exists($path)) { @unlink($path); \Log::debug('----business zip 删除ok----'); } } /** * Reverse the migrations. * * @return void */ public function down() { // } }