wip
This commit is contained in:
1 parent
e0e2f39b91
commit
d07048b648
2 files changed
+10
-9
No files matched your search
@@ -61,17 +61,20 @@ class Logifuture
|
|||||||
];
|
];
|
||||||
|
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_URL, 'https://proxydb1.nuhodds.com/logifuture.php');
|
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
|
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
if (config('env.app_env') == 'local') {
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
curl_setopt($ch, CURLOPT_URL, 'https://proxydb1.nuhodds.com/logifuture.php');
|
||||||
'Proxy-Auth: AIkcoRnipSgMK88WMQhOQQN3LKDrNDCIebNfPnEayJdmDeTigx',
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||||
]);
|
'Proxy-Auth: AIkcoRnipSgMK88WMQhOQQN3LKDrNDCIebNfPnEayJdmDeTigx',
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
|
||||||
|
}
|
||||||
|
|
||||||
$file = curl_exec($ch);
|
$file = curl_exec($ch);
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ class Auth
|
|||||||
|
|
||||||
$data = json_decode($file, true);
|
$data = json_decode($file, true);
|
||||||
|
|
||||||
dd($data);
|
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user