改名
This commit is contained in:
@@ -28,7 +28,7 @@ use Snowflake\Snowflake;
|
||||
*/
|
||||
#[Pure] public function __construct(public string $cmd, public int $port)
|
||||
{
|
||||
$this->uri = 'rpc/' . $this->port . '/' . ltrim($this->cmd, '/');
|
||||
$this->uri = 'rpc/p' . $this->port . '/' . ltrim($this->cmd, '/');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -75,10 +75,10 @@ class Router extends HttpService implements RouterInterface
|
||||
* @param $port
|
||||
* @param Closure|array|string $closure
|
||||
* @param null $method
|
||||
* @return mixed
|
||||
* @return Node|bool|null
|
||||
* @throws Exception
|
||||
*/
|
||||
public function addPortListen($port, Closure|array|string $closure, $method = null): mixed
|
||||
public function addPortListen($port, Closure|array|string $closure, $method = null): Node|null|bool
|
||||
{
|
||||
try {
|
||||
if (!is_string($closure)) {
|
||||
|
||||
Reference in New Issue
Block a user