This commit is contained in:
as2252258@163.com
2021-08-24 01:07:15 +08:00
parent 6bdc50a29e
commit 945b1b315c
+3 -2
View File
@@ -65,7 +65,7 @@ class Response extends HttpService implements ResponseInterface
* @param int $int * @param int $int
* @param int $reID * @param int $reID
*/ */
public function setClientId(int $int, int $reID = null) public function setClientId(int $int, int $reID = null): static
{ {
$this->clientId = $int; $this->clientId = $int;
$manager = Kiri::getDi()->get(ServerManager::class); $manager = Kiri::getDi()->get(ServerManager::class);
@@ -73,7 +73,8 @@ class Response extends HttpService implements ResponseInterface
if (!empty($this->reactorId)) if (!empty($this->reactorId))
{ {
$this->reactorId = $reID; $this->reactorId = $reID;
}; }
return $this;
} }