|
@@ -92,7 +92,7 @@ if (!function_exists('http_get')) { |
|
@@ -92,7 +92,7 @@ if (!function_exists('http_get')) { |
|
92
|
charset = UTF-8";
|
92
|
charset = UTF-8";
|
|
93
|
}
|
93
|
}
|
|
94
|
$ch1 = curl_init();
|
94
|
$ch1 = curl_init();
|
|
95
|
- $timeout = 5;
|
95
|
+ $timeout = 30;
|
|
96
|
curl_setopt($ch1, CURLOPT_URL, $url);
|
96
|
curl_setopt($ch1, CURLOPT_URL, $url);
|
|
97
|
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
|
97
|
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
|
|
98
|
curl_setopt($ch1, CURLOPT_HTTPHEADER, $header);
|
98
|
curl_setopt($ch1, CURLOPT_HTTPHEADER, $header);
|
|
@@ -100,8 +100,6 @@ if (!function_exists('http_get')) { |
|
@@ -100,8 +100,6 @@ if (!function_exists('http_get')) { |
|
100
|
curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, false);
|
100
|
curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, false);
|
|
101
|
curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, false);
|
101
|
curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, false);
|
|
102
|
$access_txt = curl_exec($ch1);
|
102
|
$access_txt = curl_exec($ch1);
|
|
103
|
- var_dump($access_txt);
|
|
|
|
104
|
- die();
|
|
|
|
105
|
curl_close($ch1);
|
103
|
curl_close($ch1);
|
|
106
|
return json_decode($access_txt, true);
|
104
|
return json_decode($access_txt, true);
|
|
107
|
}
|
105
|
}
|