改进Query类after_update回调方法

This commit is contained in:
thinkphp
2017-01-30 14:33:56 +08:00
parent ff85b8c3cf
commit 96238de8e3

View File

@@ -2213,6 +2213,7 @@ class Query
// 执行操作
$result = '' == $sql ? 0 : $this->execute($sql, $bind);
if ($result) {
$options['data'] = $data;
$this->trigger('after_update', $options);
}
return $result;