diff --git a/library/think/Controller.php b/library/think/Controller.php index 503f1884..03af3da6 100644 --- a/library/think/Controller.php +++ b/library/think/Controller.php @@ -149,7 +149,7 @@ class Controller * @param bool $fail 是否抛出异常 * @return $this */ - protected function failException($fail = true) + protected function validateFailException($fail = true) { $this->failException = $fail; return $this; diff --git a/library/think/Model.php b/library/think/Model.php index d7f5644e..4815540d 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -740,7 +740,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess * @param bool $fail 是否抛出异常 * @return $this */ - public function failException($fail = true) + public function validateFailException($fail = true) { $this->failException = $fail; return $this;