From 50dbbd37aac14b338794de5299302cd5fa166b0e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 22 Sep 2016 13:37:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 0f7d72d3..8a263866 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1348,7 +1348,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess { $query = self::getDb(); // 全局作用域 - if (static::$useGlobalScope && method_exists($model, 'base')) { + if (static::$useGlobalScope && method_exists(__CLASS__, 'base')) { call_user_func_array('static::base', [ & $query]); } return call_user_func_array([$query, $method], $params);