|
|
@@ -458,6 +458,8 @@ class Lakala
|
|
|
$ch = curl_init();
|
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
|
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
|
|
+ curl_setopt($ch, CURLOPT_TIMEOUT, 10);
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);//设置HTTP头
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|