Browse Source

Default Changelist

xxxrrrdddd 2 years ago
parent
commit
a65b7d474c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      thinkphp/library/think/db/Query.php

+ 1 - 1
thinkphp/library/think/db/Query.php

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