diff --git a/library/traits/model/query.php b/library/traits/model/query.php index fe589d94..52702d93 100644 --- a/library/traits/model/query.php +++ b/library/traits/model/query.php @@ -73,6 +73,7 @@ trait Query $this->commit(); } catch (\think\exception $e) { $this->rollback(); + return false; } return true; }