From 988d2fcea4585cba3048d3c6067b63ee3fad65bb Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 14 Jan 2026 19:43:05 +0100 Subject: [PATCH] wip --- app/Console/Commands/Grapper/Logifuture/Auth.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/Grapper/Logifuture/Auth.php b/app/Console/Commands/Grapper/Logifuture/Auth.php index 560d5882..66f85002 100644 --- a/app/Console/Commands/Grapper/Logifuture/Auth.php +++ b/app/Console/Commands/Grapper/Logifuture/Auth.php @@ -29,19 +29,16 @@ class Auth 'Proxy-Auth: AIkcoRnipSgMK88WMQhOQQN3LKDrNDCIebNfPnEayJdmDeTigx', ]); } else { - dd($url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, [ 'username' => 'nuhodds', 'password' => self::$password, ]); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'accept: application/json', 'content-type: application/json', @@ -49,10 +46,10 @@ class Auth } $file = curl_exec($ch); - dd($file); - $data = json_decode($file, true); + dd($data); + return $data; } }