This commit is contained in:
xl
2022-05-04 03:32:10 +08:00
parent ad346d01d1
commit 4b50c3fc18
2 changed files with 114 additions and 117 deletions
-3
View File
@@ -226,9 +226,6 @@ 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');
if (is_integer($handler) || is_null($handler)) {
throw new Exception('Handler not found', -32601);