diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 8ee6e15c..cf65e4c3 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2513,7 +2513,7 @@ class Query $result = isset($resultSet[0]) ? $resultSet[0] : null; } - if (isset($cache) && false !== $result) { + if (isset($cache) && $result) { // 缓存数据 $this->cacheData($key, $result, $cache); }