mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正
This commit is contained in:
@@ -1348,7 +1348,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
{
|
{
|
||||||
$query = self::getDb();
|
$query = self::getDb();
|
||||||
// 全局作用域
|
// 全局作用域
|
||||||
if (static::$useGlobalScope && method_exists($model, 'base')) {
|
if (static::$useGlobalScope && method_exists(__CLASS__, 'base')) {
|
||||||
call_user_func_array('static::base', [ & $query]);
|
call_user_func_array('static::base', [ & $query]);
|
||||||
}
|
}
|
||||||
return call_user_func_array([$query, $method], $params);
|
return call_user_func_array([$query, $method], $params);
|
||||||
|
|||||||
Reference in New Issue
Block a user