This commit is contained in:
xl
2022-05-04 03:19:28 +08:00
parent abaa2547f7
commit 1d3b71b023
+1 -1
View File
@@ -234,7 +234,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
throw new Exception('Handler not found', -32601); throw new Exception('Handler not found', -32601);
} }
$controller = $handler->callback[0]; $controller = $this->container->get($handler->callback[0]);
if (!method_exists($controller, $data['method'])) { if (!method_exists($controller, $data['method'])) {
throw new Exception('Method not found', -32601); throw new Exception('Method not found', -32601);
} }