diff --git a/library/think/Model.php b/library/think/Model.php index 7d5c96c2..63122af5 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -369,6 +369,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $value = $this->getData($name); } catch (InvalidArgumentException $e) { $notFound = true; + $value = null; } // 检测属性获取器