Commit 8a99c682 authored by clone's avatar clone

1

parent 3da4df5c
......@@ -951,7 +951,7 @@ Route::group('office', [
'collectingBill' => ['api_broker/OfficeOrderLog/collectingBill', ['method' => 'get|post']],
'collectingBillV2' => ['api_broker/OfficeOrderLog/collectingBillV2', ['method' => 'get|post']],
'bargain' => ['api_broker/OfficeOrderLog/bargain', ['method' => 'get|post']],
'statusBargain' => ['api_broker/OfficeOrderLog/statusBargain', ['method' => 'get|post']],
//'statusBargain' => ['api_broker/OfficeOrderLog/statusBargain', ['method' => 'get|post']],
'getIsAccountStatement' => ['api_broker/OfficeOrderLog/getIsAccountStatement', ['method' => 'get|post']],
'getLook' => ['api_broker/OfficeOrderLog/getLook', ['method' => 'get|post']],
'selectReportAll' => ['api_broker/OfficeOrderLog/selectReportAll', ['method' => 'get|post']],
......
......@@ -48,6 +48,9 @@ class Reptile extends Basic
$stop_url = "106.12.11.187:9899";
// $url = "https://www.haozu.com/sh/house-list/o2";
$url = "https://www.baidu.com";
$result = $this->service_->getHaoZu( $url);
dump($result);
echo "--------";
$result = $this->service_->getNewCurl( $url);
dump($result);
}
......
......@@ -3,6 +3,7 @@
namespace app\search\service;
use app\chat\utils\CurlUtil;
use Curl\Curl;
/**
......@@ -26,7 +27,8 @@ class ReptileService
"User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
];
$curl->options = [
"CURLOPT_PROXY" => "106.12.132.190:46432",
"CURLOPT_PROXY" => "182.91.218.200",
"CURLOPT_PROXYPORT" => "27353",
"CURLOPT_SSL_VERIFYPEER" => 0,
"CURLOPT_SSL_VERIFYHOST" => 2,
];
......@@ -35,19 +37,22 @@ class ReptileService
}*/
public function getNewCurl($url)
{
$curl = new \Curl\Curl();exit;
$curl->setOpt("CURLOPT_SSL_VERIFYPEER",false);
$curl->setOpt("CURLOPT_SSL_VERIFYHOST",false);
//$curl->setHeader("Cache-Control",'no-cache');
$curl->setOpt("CURLOPT_PROXY","27.204.127.137:18475");
$curl->setOpt("CURLOPT_PEFERER","http://proxy.mimvp.com/fetch.php");
$curl = new Curl();
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$curl->setOpt(CURLOPT_SSL_VERIFYHOST, false);
//$curl->setOpt(CURLOPT_PROXY, "139.159.136.149:50838");
$curl->setOpt(CURLOPT_PROXY, "182.91.218.200"); //代理服务器地址
$curl->setOpt( CURLOPT_PROXYPORT, 27353); //代理服务器端口
//$curl->setOpt( CURLOPT_PROXYTYPE, CURLPROXY_HTTPS);
// $curl->setOpt(CURLOPT_REFERER, 1000);
$headers = [
"Accept" => "application/json",
"Content-Type" => "application/json;charset=utf-8",
"Accept-Language:zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4",
"Connection" => "close",
"Cache-Control" =>'max-age=0',
"Accept-Encoding"=>'gzip,deflate'
"Referer:http://proxy.mimvp.com/fetch.php",
"Cache-Control" => 'max-age=0',
"Accept-Encoding" => 'gzip,deflate'
];
$curl->setHeaders($headers);
$response = $curl->get($url);
......
......@@ -28,4 +28,6 @@ return array(
'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
'Endroid\\QrCode\\' => array($vendorDir . '/endroid/qrcode/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
'Curl\\' => array($vendorDir . '/php-curl-class/php-curl-class/src/Curl'),
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment