From 8a5ad4b79bb15a79823e0a005fd8859969d9c901 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 7 Jun 2017 13:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }