111
This commit is contained in:
@@ -39,13 +39,14 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user