From 4ae7ffd3a844ad58b05a4c4e449693e422cc4d66 Mon Sep 17 00:00:00 2001 From: ubuntu20 Date: Tue, 29 Sep 2020 17:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8C=85=E4=BD=93=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E4=BC=A0=E8=BE=93=E6=95=B0=E9=87=8F=E4=B8=BA20m?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RpcServer.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/RpcServer.php b/src/RpcServer.php index 341499d..f5eafc5 100644 --- a/src/RpcServer.php +++ b/src/RpcServer.php @@ -59,10 +59,8 @@ class RpcServer extends BaseService { public function handle(int $fd, string $data) { $_SERVER['data'] = $data; try { - //$ret = include $this->entryPoint; - echo $data."\n"; - $ret = "sa"; - $this->send($fd, $ret); + $ret = include $this->entryPoint; + $this->send($fd, $data); } catch (\Error $e) { //TODO 记录日志 echo "YeeError: ".$e->getMessage();