diff --git a/library/think/controller/rest.php b/library/think/controller/rest.php index 028be28c..64bed282 100644 --- a/library/think/controller/rest.php +++ b/library/think/controller/rest.php @@ -13,7 +13,7 @@ namespace think\controller; use think\Response; -abstract class rest +abstract class Rest { protected $_method = ''; // 当前请求类型 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; }