|
|
@@ -69,18 +69,15 @@ class Curl
|
|
|
$content = curl_exec($curl);
|
|
|
$curl_errno = curl_errno($curl);
|
|
|
if ($curl_errno > 0) {
|
|
|
- Logger::setlog($error = sprintf("curl error=%s, errno=%d.", curl_error($curl), $curl_errno));
|
|
|
+ Logger::setlog($error = sprintf("curl error=%s, errno=%d.使用代理%s", curl_error($curl), $curl_errno,$proxy));
|
|
|
curl_close($curl);
|
|
|
return false;
|
|
|
} else {
|
|
|
- Logger::setlog($error = sprintf("curl error=%s, errno=%d.", curl_error($curl), $curl_errno), APP_DIR . "/success.log");
|
|
|
+ Logger::setlog($error = sprintf("代理%s正常!", $proxy), APP_DIR . "/success.log");
|
|
|
}
|
|
|
// $this->http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
|
|
curl_close($curl);
|
|
|
|
|
|
- $time_end = microtime_float();
|
|
|
- $time = $time_end - $time_start;
|
|
|
- define("CURL_TIME", $time);
|
|
|
return $content;
|
|
|
}
|
|
|
|