From 39f17a1c2e644b6055db48d9018ed2892aac59ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 3 Sep 2020 18:10:28 +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 | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/system/Cache/Redis.php b/system/Cache/Redis.php index fe384a40..256b5a4c 100644 --- a/system/Cache/Redis.php +++ b/system/Cache/Redis.php @@ -278,22 +278,12 @@ class Redis extends Component */ public function __call($name, $arguments) { - try { - if (method_exists($this, $name)) { - $data = $this->{$name}(...$arguments); - } else { - $data = $this->proxy()->{$name}(...$arguments); - } - } catch (\Throwable $exception) { - $this->error(print_r([ - $exception->getMessage(), - $exception->getFile(), - $exception->getLine() - ], true)); - $data = false; - } finally { - return $data; + if (method_exists($this, $name)) { + $data = $this->{$name}(...$arguments); + } else { + $data = $this->proxy()->{$name}(...$arguments); } + return $data; } /**