diff --git a/library/think/Model.php b/library/think/Model.php index 36022628..28e72442 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -48,9 +48,13 @@ abstract class Model implements \JsonSerializable, \ArrayAccess // 字段完成规则 protected $auto = []; // 新增的字段完成 - protected $insert = []; + protected $insert = [ + 'create_time' => 'time', + ]; // 更新的字段完成 - protected $update = []; + protected $update = [ + 'update_time' => 'time', + ]; // 当前执行的关联类型 private $relation;