|
@@ -94,7 +94,7 @@ class Query
|
|
|
return $this->where($where)->value($args[1]);
|
|
|
} elseif ($this->model && method_exists($this->model, 'scope' . $method)) {
|
|
|
// 动态调用命名范围
|
|
|
- $method = 'scope' . $method;
|
|
|
+ $method = 'scope' . ucfirst($method);
|
|
|
array_unshift($args, $this);
|
|
|
|
|
|
call_user_func_array([$this->model, $method], $args);
|