This commit is contained in:
2021-11-05 01:18:49 +08:00
parent 99c0773596
commit 5da616e83f
+7 -9
View File
@@ -39,18 +39,16 @@ use ReflectionException;
*/ */
public function execute(mixed $class, mixed $method = ''): bool public function execute(mixed $class, mixed $method = ''): bool
{ {
// $default = $this->create(); $default = $this->create();
// $agent = Kiri::getDi()->get(Agent::class); $agent = Kiri::getDi()->get(Agent::class);
// $data = $agent->service->register($default); $data = $agent->service->register($default);
// if ($data->getStatusCode() != 200) { if ($data->getStatusCode() != 200) {
// exit($data->getBody()->getContents()); exit($data->getBody()->getContents());
// } }
// return RpcManager::add($this->service, $class, $default['id']); return RpcManager::add($this->service, $class, $default['id']);
return true;
} }
/** /**
* @throws ConfigException * @throws ConfigException
*/ */