From ca6989aec5654d80c64104a4a42692ad707cd26c Mon Sep 17 00:00:00 2001 From: pwf0112 Date: Sat, 19 Dec 2015 15:54:12 +0800 Subject: [PATCH] =?UTF-8?q?patchQuery=E6=96=B9=E6=B3=95BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发生异常回滚缺少返回值 --- library/traits/model/query.php | 1 + 1 file changed, 1 insertion(+) 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; }