mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进scope动态调用
This commit is contained in:
@@ -673,7 +673,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $class;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解析模型的完整命名空间
|
// 解析模型的完整命名空间
|
||||||
@@ -758,7 +758,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
$class = self::db();
|
$class = self::db();
|
||||||
array_unshift($args, $class);
|
array_unshift($args, $class);
|
||||||
call_user_func_array([$this, $method], $args);
|
call_user_func_array([$this, $method], $args);
|
||||||
return $class;
|
return $this;
|
||||||
} else {
|
} else {
|
||||||
throw new Exception(__CLASS__ . ':' . $method . ' method not exist');
|
throw new Exception(__CLASS__ . ':' . $method . ' method not exist');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user