From d83228bb97ae4097bcf3ab65f0de018df697fb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 29 Oct 2021 14:23:19 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/RpcJsonp.php b/src/RpcJsonp.php index 1febbb2..a1ca7fd 100644 --- a/src/RpcJsonp.php +++ b/src/RpcJsonp.php @@ -63,10 +63,12 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa */ public function onBeforeShutdown(OnBeforeShutdown $beforeShutdown) { - $config = Config::get('rpc'); + $config = Config::get('rpc.registry.config'); + + $config = array_change_key_case($config, CASE_LOWER); $agent = $this->container->get(Agent::class); - $agent->service->deregister($config['registry']['config']['ID']); + $agent->service->deregister($config['id']); }