From 1d3b71b023ed3dc2a583c02c2ddb2b0e61c04e0f Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 4 May 2022 03:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RpcJsonp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RpcJsonp.php b/RpcJsonp.php index ab5d84b..90f527e 100644 --- a/RpcJsonp.php +++ b/RpcJsonp.php @@ -234,7 +234,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa throw new Exception('Handler not found', -32601); } - $controller = $handler->callback[0]; + $controller = $this->container->get($handler->callback[0]); if (!method_exists($controller, $data['method'])) { throw new Exception('Method not found', -32601); }