diff --git a/application/service/controller/api/Client.php b/application/service/controller/api/Client.php index 5d0f9b6c7..990628da4 100644 --- a/application/service/controller/api/Client.php +++ b/application/service/controller/api/Client.php @@ -101,7 +101,7 @@ class Client extends Controller { try { $instance = $this->create($param); - JsonRpcServerService::instance()->create($instance); + JsonRpcServerService::instance()->create(empty($instance) ? $this : $instance); } catch (HttpResponseException $exception) { throw $exception; } catch (\Exception $e) {