Explorar o código

Default Changelist

xxxrrrdddd %!s(int64=2) %!d(string=hai) anos
pai
achega
a65b7d474c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);