|
@@ -2265,8 +2265,6 @@ function httpRequest($url, $data=[], $type='post', $dataType='array', $timeout=6
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
|
|
}
|
|
}
|
|
|
$ret = curl_exec($ch);
|
|
$ret = curl_exec($ch);
|
|
|
- echo $ret.'++';
|
|
|
|
|
- file_put_contents('./logs/ip.txt', $ret, 8);
|
|
|
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
|
if(strtolower($dataType) == 'array' && !is_array($ret)){
|
|
if(strtolower($dataType) == 'array' && !is_array($ret)){
|
|
|
$ret = json_decode(trim($ret), true);
|
|
$ret = json_decode(trim($ret), true);
|