From 85245fdf355eb1ced2b7b6e34839af2e0f972468 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 30 Jan 2017 14:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84after?= =?UTF-8?q?=5Finsert=E5=9B=9E=E8=B0=83=E6=96=B9=E6=B3=95=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index b5f0eb9a..65e1b07f 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2076,7 +2076,8 @@ class Query $pk = $this->getPk($options); $data[$pk] = $lastInsId; } - $this->trigger('after_insert', $data); + $options['data'] = $data; + $this->trigger('after_insert', $options); if ($getLastInsID) { return $lastInsId;