diff --git a/library/think/Model.php b/library/think/Model.php index 05d56f95..6f74d388 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -692,7 +692,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess if (isset($this->data[$key])) { throw new Exception('bind attr has exists:' . $key); } else { - $this->data[$key] = $model->$attr; + $this->data[$key] = $model->getAttr($attr); } } }