catch Exception 改为 Throwable

This commit is contained in:
kuaifan
2022-05-13 15:58:06 +08:00
parent 279f05fd11
commit 99f9431794
8 changed files with 14 additions and 20 deletions

View File

@@ -1151,7 +1151,7 @@ class ProjectController extends AbstractController
}
try {
Madzipper::make($zipPath)->add($xlsPath)->close();
} catch (\Exception) {
} catch (\Throwable) {
}
//
if (file_exists($zipPath)) {
@@ -1386,7 +1386,7 @@ class ProjectController extends AbstractController
//
try {
ProjectTask::userTask($file->task_id, null);
} catch (\Exception $e) {
} catch (\Throwable $e) {
abort(403, $e->getMessage() ?: "This file not support download.");
}
//