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);