From bb0bbe942519e798f46bb5470086543719e541e3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 21 Jan 2016 18:52:20 +0800 Subject: [PATCH] =?UTF-8?q?model=E7=B1=BBfind=E6=96=B9=E6=B3=95=E6=94=B9?= =?UTF-8?q?=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index bb6d934e..c116104b 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -884,13 +884,13 @@ class Model } // 数据处理 $data = $this->_read_data($resultSet[0], $options); - // 数据对象赋值 - $this->data = $data; // 回调 $this->_after_find($data, $options); if (isset($cache)) { Cache::set($key, $data, $cache['expire']); } + // 数据对象赋值 + $this->data = $data; return $this->data; }