This commit is contained in:
2021-11-05 01:17:53 +08:00
parent dbe91352e6
commit 6df28cc064
+8 -7
View File
@@ -39,13 +39,14 @@ use ReflectionException;
*/
public function execute(mixed $class, mixed $method = ''): bool
{
$default = $this->create();
$agent = Kiri::getDi()->get(Agent::class);
$data = $agent->service->register($default);
if ($data->getStatusCode() != 200) {
exit($data->getBody()->getContents());
}
return RpcManager::add($this->service, $class, $default['id']);
// $default = $this->create();
// $agent = Kiri::getDi()->get(Agent::class);
// $data = $agent->service->register($default);
// if ($data->getStatusCode() != 200) {
// exit($data->getBody()->getContents());
// }
// return RpcManager::add($this->service, $class, $default['id']);
return true;
}