From 9a0df4ef0408b66d1d818ad3b10df03ddf6e254b Mon Sep 17 00:00:00 2001 From: shanyu Date: Fri, 16 Sep 2016 16:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E9=85=8D=E7=BD=AEMo?= =?UTF-8?q?del=E5=B1=9E=E6=80=A7field=3Dtrue=E6=83=85=E5=86=B5=E4=B8=8B,?= =?UTF-8?q?=E9=80=9A=E8=BF=87=5F=5Fcall=E8=B0=83=E7=94=A8db()=E5=BC=95?= =?UTF-8?q?=E5=8F=91=E7=9A=84BUG?= 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 f1c91582..d22bec47 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -158,7 +158,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess if (!empty($this->field)) { if (true === $this->field) { - $type = $this->db()->getTableInfo('', 'type'); + $type = $query->getTableInfo('', 'type'); } else { $type = []; foreach ((array) $this->field as $key => $val) {