mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Query类的after_insert回调方法参数
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user