改进Query类的after_insert回调方法参数

This commit is contained in:
thinkphp
2017-01-30 14:37:28 +08:00
parent 96238de8e3
commit 85245fdf35

View File

@@ -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;