From 151f7877e4f62d00404567d6953071c8ccd2a6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Thu, 27 Jul 2023 15:47:40 +0800 Subject: [PATCH] Update --- app/Iot/Linkos/HttpClient.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Iot/Linkos/HttpClient.php b/app/Iot/Linkos/HttpClient.php index 0d3a725..758fed8 100644 --- a/app/Iot/Linkos/HttpClient.php +++ b/app/Iot/Linkos/HttpClient.php @@ -68,6 +68,13 @@ class HttpClient ]); } + public function get(string $url, array $query = []): array + { + return $this->request('GET', $url, [ + 'query' => $query, + ]); + } + /** * @param string $url * @param array $data