修改 User Agent

This commit is contained in:
iVampireSP.com 2023-01-19 16:14:02 +08:00
parent 3b1dcd4314
commit 948f7a2805
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -71,7 +71,7 @@ public function remote($func, $requests): array
public function http(): PendingRequest
{
return Http::module($this->api_token, $this->url)->acceptJson()->timeout(5);
return Http::module($this->api_token, $this->url)->acceptJson()->timeout(5)->withUserAgent('LAECloud-Client');
}
private function getResponse(Response $response): array