From 21c1dc40e8676000478b3668964bbd75b9d1a971 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 16 Nov 2017 14:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BModel=E7=B1=BBsave=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=AF=B9oracle=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index d7f91db0..dc150d78 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1103,9 +1103,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess // 检测字段 $allowFields = $this->checkAllowField(array_merge($this->auto, $this->insert)); if (!empty($allowFields)) { - $result = $this->getQuery()->strict(false)->field($allowFields)->insert($this->data); + $result = $this->getQuery()->strict(false)->field($allowFields)->insert($this->data, false, false, $sequence); } else { - $result = $this->getQuery()->insert($this->data); + $result = $this->getQuery()->insert($this->data, false, false, $sequence); } // 获取自动增长主键