From b1c9e8d77ec92175fedfd250f6b78f3b8ec7cea6 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Sun, 28 Apr 2024 10:09:02 +0800 Subject: [PATCH] Update Install.php --- app/index/controller/Install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index/controller/Install.php b/app/index/controller/Install.php index 0b19b00..9fb4d6b 100644 --- a/app/index/controller/Install.php +++ b/app/index/controller/Install.php @@ -191,7 +191,7 @@ class Install extends BaseController if (version_compare($_version, '5.7.0', '<')) { $this->error('mysql版本最低要求 5.7.x'); } - } catch (\Throwable $e) { + } catch (\mysqli_sql_exception $e) { $this->error($e->getMessage()); } return true;