From d07048b6485f3e982f466ed2f3278b85632f1e1c Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 14 Jan 2026 19:48:44 +0100 Subject: [PATCH] wip --- app/Console/Commands/Grapper/Logifuture.php | 17 ++++++++++------- .../Commands/Grapper/Logifuture/Auth.php | 2 -- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/Console/Commands/Grapper/Logifuture.php b/app/Console/Commands/Grapper/Logifuture.php index 151a4012..bc01e6da 100644 --- a/app/Console/Commands/Grapper/Logifuture.php +++ b/app/Console/Commands/Grapper/Logifuture.php @@ -61,17 +61,20 @@ class Logifuture ]; $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, 'https://proxydb1.nuhodds.com/logifuture.php'); 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, $post_fields); - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_HTTPHEADER, [ - 'Proxy-Auth: AIkcoRnipSgMK88WMQhOQQN3LKDrNDCIebNfPnEayJdmDeTigx', - ]); + if (config('env.app_env') == 'local') { + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields); + curl_setopt($ch, CURLOPT_URL, 'https://proxydb1.nuhodds.com/logifuture.php'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Proxy-Auth: AIkcoRnipSgMK88WMQhOQQN3LKDrNDCIebNfPnEayJdmDeTigx', + ]); + } else { + curl_setopt($ch, CURLOPT_HTTPHEADER, $header); + } $file = curl_exec($ch); diff --git a/app/Console/Commands/Grapper/Logifuture/Auth.php b/app/Console/Commands/Grapper/Logifuture/Auth.php index 01073fe1..675a4af5 100644 --- a/app/Console/Commands/Grapper/Logifuture/Auth.php +++ b/app/Console/Commands/Grapper/Logifuture/Auth.php @@ -48,8 +48,6 @@ class Auth $data = json_decode($file, true); - dd($data); - return $data; } }