From 72238e8a5c880ca73245b631ba6810c754dfe059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 3 Sep 2020 18:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/Cache/Redis.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/Cache/Redis.php b/system/Cache/Redis.php index 736c582a..d5798b59 100644 --- a/system/Cache/Redis.php +++ b/system/Cache/Redis.php @@ -284,10 +284,9 @@ class Redis extends Component } else { $data = $this->proxy()->{$name}(...$arguments); } - } catch (RedisConnectException|\Throwable $exception) { - if ($exception instanceof RedisConnectException) { - throw new Exception($exception->getMessage()); - } + } catch (RedisConnectException $exception) { + throw new Exception($exception->getMessage()); + } catch (\Throwable $exception) { $this->error(print_r($exception, true)); $data = false; } finally {