From f2d60f6982504962910b4e9428e2e31bb831ccb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 2 Dec 2021 15:38:49 +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/RpcManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/RpcManager.php b/src/RpcManager.php index c8271d3..d450866 100644 --- a/src/RpcManager.php +++ b/src/RpcManager.php @@ -33,6 +33,9 @@ class RpcManager $file = storage('.rpc.clients.' . md5($serviceName),'rpc'); if (!empty($body) && is_array($body)) { + + var_dump(array_column($body, 'service')); + file_put_contents($file, json_encode(array_column($body, 'service'))); } else { file_put_contents($file, json_encode([]));