From 2d658899a0280559ebfe7b91e617fb22121c1fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 29 Oct 2021 11:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RpcJsonp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RpcJsonp.php b/src/RpcJsonp.php index 7322e52..bc6dbeb 100644 --- a/src/RpcJsonp.php +++ b/src/RpcJsonp.php @@ -70,7 +70,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa $config = Config::get('rpc'); $agent = Kiri::getDi()->get(Agent::class); - $agent->service->register([ + $data = $agent->service->register([ "ID" => $config['name'] ?? 'test-name', "Name" => "redis", "Tags" => ["primary", "v1"], @@ -91,6 +91,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa "Warning" => 1 ] ]); + var_dump($data->getBody()->getContents()); }