From c06506d487b63c4556d5cde5f4cbd6bb2f624c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 13 Aug 2021 15:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/Client.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/HttpServer/Client/Client.php b/HttpServer/Client/Client.php index 4cec6a24..685d5357 100644 --- a/HttpServer/Client/Client.php +++ b/HttpServer/Client/Client.php @@ -39,12 +39,11 @@ class Client extends ClientAbstracts /** * @param $url - * @param array $data + * @param array|string $data * @return array|string|Result - * @throws Exception - * 使用swoole协程方式请求 + * @throws Exception 使用swoole协程方式请求 */ - private function coroutine($url, array $data = []): array|string|Result + private function coroutine($url, array|string $data = []): array|string|Result { try { $client = $this->generate_client($data, ...$url);