From 5bac261b33dc746430fdbb2ce8f131cff5caa3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Aug 2021 19:20:16 +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/Base/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Cache/Base/Redis.php b/System/Cache/Base/Redis.php index 750d27d2..be38dfe3 100644 --- a/System/Cache/Base/Redis.php +++ b/System/Cache/Base/Redis.php @@ -140,7 +140,7 @@ class Redis implements StopHeartbeatCheck if (!$redis->pconnect($this->host, $this->port, $this->timeout)) { throw new RedisConnectException(sprintf('The Redis Connect %s::%d Fail.', $this->host, $this->port)); } - if (!empty($config['auth']) && !$redis->auth($config['auth'])) { + if (!empty($this->auth) && !$redis->auth($this->auth)) { throw new RedisConnectException(sprintf('Redis Error: %s, Host %s, Auth %s', $redis->getLastError(), $this->host, $this->auth)); } if ($this->read_timeout < 0) {