From 73cafb95dc7fe12ec98426ef0adbaeaed8482aad Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 29 May 2017 09:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB=E7=9A=84value?= =?UTF-8?q?=E5=92=8Ccolumn=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index b08436cd..a8722a1a 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -395,7 +395,7 @@ class Query public function value($field, $default = null, $force = false) { $result = false; - if (empty($options['fetch_sql']) && !empty($this->options['cache'])) { + if (empty($this->options['fetch_sql']) && !empty($this->options['cache'])) { // 判断查询缓存 $cache = $this->options['cache']; if (empty($this->options['table'])) { @@ -438,7 +438,7 @@ class Query public function column($field, $key = '') { $result = false; - if (empty($options['fetch_sql']) && !empty($this->options['cache'])) { + if (empty($this->options['fetch_sql']) && !empty($this->options['cache'])) { // 判断查询缓存 $cache = $this->options['cache']; if (empty($this->options['table'])) {