From 112a59723e534e18d9baba67c1cf9819efa8f515 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 9 Apr 2016 16:13:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bscope=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Model.php b/library/think/Model.php index 117a3fb0..373fd58e 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -673,7 +673,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess } } } - return $class; + return $model; } // 解析模型的完整命名空间 @@ -758,7 +758,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $class = self::db(); array_unshift($args, $class); call_user_func_array([$this, $method], $args); - return $class; + return $this; } else { throw new Exception(__CLASS__ . ':' . $method . ' method not exist'); }