From 81c74bb71e33435072216c30a59430fd29ec25a3 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Thu, 14 Sep 2023 13:00:16 +0800 Subject: [PATCH] =?UTF-8?q?update:redis=E5=85=BC=E5=AE=B9=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E7=8E=AF=E5=A2=83=E6=B2=A1=E6=9C=89=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/RedisLogic.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/common/logic/RedisLogic.php b/app/common/logic/RedisLogic.php index 5a6b56fbf..e31f48f4a 100644 --- a/app/common/logic/RedisLogic.php +++ b/app/common/logic/RedisLogic.php @@ -8,7 +8,9 @@ class RedisLogic extends BaseLogic { $redisInstance = new \Redis(); $redisInstance->connect(env('redis.host')); - $redisInstance->auth(env('redis.auth')); + if (env('redis.auth', '') != '') { + $redisInstance->auth(env('redis.auth')); + } return $redisInstance; } } \ No newline at end of file