This commit is contained in:
2020-09-08 01:30:13 +08:00
parent 6e8c7b0af1
commit e5fa034d8c
+12 -12
View File
@@ -88,18 +88,18 @@ class BaseObject implements Configure
* @return mixed
* @throws Exception
*/
public function __call($name, $arguments)
{
if (!method_exists($this, $name)) {
throw new Exception("Not find " . get_called_class() . "::($name)");
} else {
$result = $this->$name(...$arguments);
if (method_exists($this, 'defer')) {
$this->defer();
}
return $result;
}
}
// public function __call($name, $arguments)
// {
// if (!method_exists($this, $name)) {
// throw new Exception("Not find " . get_called_class() . "::($name)");
// } else {
// $result = $this->$name(...$arguments);
// if (method_exists($this, 'defer')) {
// $this->defer();
// }
// return $result;
// }
// }
/**
* @param $message