diff --git a/library/think/Model.php b/library/think/Model.php index 1ef0b2c9..1121261f 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -617,8 +617,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess // 命名范围 public static function scope($name) { - $model = new static(); - return $model->$name(); + $model = new static(); + $method = 'scope' . $name; + return $model->$method(); } // 解析模型的完整命名空间