From 6df28cc064f2cf7ab89ef35f22fb2d8aca34ffbd Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 5 Nov 2021 01:17:53 +0800 Subject: [PATCH] 111 --- src/Annotation/JsonRpc.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Annotation/JsonRpc.php b/src/Annotation/JsonRpc.php index c68d3e2..4e28938 100644 --- a/src/Annotation/JsonRpc.php +++ b/src/Annotation/JsonRpc.php @@ -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; }