change code in some code
This commit is contained in:
@@ -10,13 +10,11 @@ class GetErrorRateService
|
||||
{
|
||||
protected string $url;
|
||||
protected string $channelName;
|
||||
protected string $password;
|
||||
protected string $username;
|
||||
protected array $inputParameters;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->username = config('fms_web_services.Error_Rate.username');
|
||||
$this->url = config('fms_web_services.Error_Rate.url');
|
||||
$this->channelName = 'fms_error_rate';
|
||||
}
|
||||
|
||||
@@ -48,9 +46,10 @@ class GetErrorRateService
|
||||
public function sendRequest(): array
|
||||
{
|
||||
return Http::withHeaders(['Content-Type' => 'application/json'])
|
||||
->withBody(json_encode($this->inputParameters))
|
||||
->throw()
|
||||
->withoutVerifying()
|
||||
->post($this->url, $this->inputParameters)
|
||||
->post($this->url)
|
||||
->json();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user