From 0ba80fcc124d87d71bc2d11e8ddc2bedefbd12f8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Dec 2017 16:57:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Cache.php b/library/think/Cache.php index 1e31a96b..cb3dbe09 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -80,7 +80,7 @@ class Cache if (empty($options) && 'complex' == Config::get('cache.type')) { $default = Config::get('cache.default'); // 获取默认缓存配置,并连接 - $options = Config::get('cache.' . $default['type']) ?: Config::get('cache.default'); + $options = Config::get('cache.' . $default['type']) ?: $default; } elseif (empty($options)) { $options = Config::get('cache'); }