This commit is contained in:
2021-12-02 15:38:49 +08:00
parent 6d242d42b0
commit f2d60f6982
+3
View File
@@ -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([]));