变更
This commit is contained in:
+4
-1
@@ -225,8 +225,11 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
||||
private function dispatch($data): array
|
||||
{
|
||||
try {
|
||||
if (!str_starts_with($data['service'], '/')) {
|
||||
$data['service'] = '/' . $data['service'];
|
||||
}
|
||||
$handler = $this->collector->find($data['service'], 'GET');
|
||||
var_dump($this->collector, $data);
|
||||
var_dump($handler, $data);
|
||||
if (is_integer($handler) || is_null($handler)) {
|
||||
throw new Exception('Handler not found', -32601);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user