This commit is contained in:
2021-10-29 11:09:25 +08:00
parent a8cd5d59fc
commit 2d658899a0
+2 -1
View File
@@ -70,7 +70,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
$config = Config::get('rpc'); $config = Config::get('rpc');
$agent = Kiri::getDi()->get(Agent::class); $agent = Kiri::getDi()->get(Agent::class);
$agent->service->register([ $data = $agent->service->register([
"ID" => $config['name'] ?? 'test-name', "ID" => $config['name'] ?? 'test-name',
"Name" => "redis", "Name" => "redis",
"Tags" => ["primary", "v1"], "Tags" => ["primary", "v1"],
@@ -91,6 +91,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
"Warning" => 1 "Warning" => 1
] ]
]); ]);
var_dump($data->getBody()->getContents());
} }