改名
This commit is contained in:
@@ -278,23 +278,13 @@ class Redis extends Component
|
|||||||
*/
|
*/
|
||||||
public function __call($name, $arguments)
|
public function __call($name, $arguments)
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
if (method_exists($this, $name)) {
|
if (method_exists($this, $name)) {
|
||||||
$data = $this->{$name}(...$arguments);
|
$data = $this->{$name}(...$arguments);
|
||||||
} else {
|
} else {
|
||||||
$data = $this->proxy()->{$name}(...$arguments);
|
$data = $this->proxy()->{$name}(...$arguments);
|
||||||
}
|
}
|
||||||
} catch (\Throwable $exception) {
|
|
||||||
$this->error(print_r([
|
|
||||||
$exception->getMessage(),
|
|
||||||
$exception->getFile(),
|
|
||||||
$exception->getLine()
|
|
||||||
], true));
|
|
||||||
$data = false;
|
|
||||||
} finally {
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 释放连接池
|
* 释放连接池
|
||||||
|
|||||||
Reference in New Issue
Block a user