Update Curd.php
This commit is contained in:
@@ -51,7 +51,7 @@ trait Curd
|
||||
$this->validate($post, $rule);
|
||||
try {
|
||||
Db::transaction(function () use ($post, &$save) {
|
||||
$save = $this->model->strict(false)->save($post);
|
||||
$save = $this->model->save($post);
|
||||
});
|
||||
}catch (\Exception $e) {
|
||||
$this->error('新增失败:' . $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user