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) {