From f49de96df5250254bf7dbf1ea96abe678fdc7c20 Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 14 Jan 2026 19:37:00 +0100 Subject: [PATCH] wip --- app/Console/Commands/Grapper/Logifuture/Auth.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/Grapper/Logifuture/Auth.php b/app/Console/Commands/Grapper/Logifuture/Auth.php index 925a8847..19ae48c9 100644 --- a/app/Console/Commands/Grapper/Logifuture/Auth.php +++ b/app/Console/Commands/Grapper/Logifuture/Auth.php @@ -9,13 +9,13 @@ class Auth public static function exe() { - $enviorment = config('env.app_env'); - $base_url = BaseUrl::get(); $url = $base_url.'/v1/authentication/token'; - if ($enviorment == 'local') { + dd($url); + + if (config('env.app_env') == 'local') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://proxydb1.nuhodds.com/proxy.php'); curl_setopt($ch, CURLOPT_TIMEOUT, 30); @@ -33,9 +33,10 @@ class Auth } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_TIMEOUT, 30); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, [ 'username' => 'nuhodds', @@ -47,7 +48,6 @@ class Auth 'content-type: application/json', ]); } - $file = curl_exec($ch); dd($file);