This commit is contained in:
thinkphp
2016-09-22 13:37:11 +08:00
parent 0f5151dde4
commit 50dbbd37aa

View File

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