update rm deadcode

This commit is contained in:
baodev0
2026-09-27 11:42:40 +07:00
parent 82a71244ca
commit 3af59bd9c5
129 changed files with 5194 additions and 2698 deletions
+3 -2
View File
@@ -3,6 +3,7 @@
namespace App\Http\Services\vCenter;
use Illuminate\Support\Facades\Http;
use App\Support\TlsHttpClientFactory;
use App\Http\Facade\SignRSA;
use App\Models\Vcenter;
use Exception;
@@ -23,7 +24,7 @@ class Client
$this->username = $vcenterModel->user;
$this->password = SignRSA::DecryptFunc($vcenterModel->password);
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withBasicAuth($this->username, $this->password)
->post("https://{$this->apiUri}/rest/com/vmware/cis/session", []);
@@ -48,7 +49,7 @@ class Client
public function checkApiExits(): bool
{
$response = Http::withoutVerifying()
$response = TlsHttpClientFactory::vCenter()
->withHeaders([
'vmware-api-session-id' => $this->token
])