diff --git a/library/think/Model.php b/library/think/Model.php index 301c7f1c..ea83126f 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -327,10 +327,11 @@ abstract class Model implements \JsonSerializable, \ArrayAccess /** * 是否需要自动写入时间字段 * @access public - * @param bool $auto + * @param bool $auto * @return $this */ - public function autoWriteTimestamp($auto){ + public function isAutoWriteTimestamp($auto) + { $this->autoWriteTimestamp = $auto; return $this; }