From 61a97ab69d4c049cec43f7ae34f86bff4b134e4c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 26 Apr 2016 08:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Model=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 5a519025..5d162a5d 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -163,7 +163,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $item[$key] = $data; } else { // 模型属性 - $item[$key] = $this->$key; + $item[$key] = $this->__get($key); } } return !empty($item) ? $item : [];