diff --git a/library/think/Model.php b/library/think/Model.php index 386ddaea..301c7f1c 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -324,6 +324,17 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } } + /** + * 是否需要自动写入时间字段 + * @access public + * @param bool $auto + * @return $this + */ + public function autoWriteTimestamp($auto){ + $this->autoWriteTimestamp = $auto; + return $this; + } + /** * 修改器 设置数据对象值 * @access public