diff --git a/src/Annotation/JsonRpc.php b/src/Annotation/JsonRpc.php index 56e13cc..79659d0 100644 --- a/src/Annotation/JsonRpc.php +++ b/src/Annotation/JsonRpc.php @@ -56,7 +56,7 @@ use ReflectionException; { $content = current(swoole_get_local_ip()); return [ - "id" => uniqid("rpc.json.{$this->method}."), + "id" => "rpc.json.{$this->method}." . md5(__DIR__), "name" => $this->method, "address" => $content, "port" => 9526,