Update Curd.php

This commit is contained in:
wolfcode
2024-05-14 15:23:40 +08:00
parent 2ec046de07
commit 9d61503ea6

View File

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