This commit is contained in:
2025-12-31 00:19:31 +08:00
parent cab1ed999a
commit fe09da4a97
+3
View File
@@ -117,6 +117,9 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
return $server->send($fd, $this->batchDispatch($data), $reactor_id); return $server->send($fd, $this->batchDispatch($data), $reactor_id);
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {
$response = Json::encode($this->failure(-32700, $throwable->getMessage())); $response = Json::encode($this->failure(-32700, $throwable->getMessage()));
$this->getLogger()->json_log($throwable);
return $server->send($fd, $response, $reactor_id); return $server->send($fd, $response, $reactor_id);
} }
} }