Commit 8a99c682 authored by clone's avatar clone

1

parent 3da4df5c
...@@ -951,7 +951,7 @@ Route::group('office', [ ...@@ -951,7 +951,7 @@ Route::group('office', [
'collectingBill' => ['api_broker/OfficeOrderLog/collectingBill', ['method' => 'get|post']], 'collectingBill' => ['api_broker/OfficeOrderLog/collectingBill', ['method' => 'get|post']],
'collectingBillV2' => ['api_broker/OfficeOrderLog/collectingBillV2', ['method' => 'get|post']], 'collectingBillV2' => ['api_broker/OfficeOrderLog/collectingBillV2', ['method' => 'get|post']],
'bargain' => ['api_broker/OfficeOrderLog/bargain', ['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']], 'getIsAccountStatement' => ['api_broker/OfficeOrderLog/getIsAccountStatement', ['method' => 'get|post']],
'getLook' => ['api_broker/OfficeOrderLog/getLook', ['method' => 'get|post']], 'getLook' => ['api_broker/OfficeOrderLog/getLook', ['method' => 'get|post']],
'selectReportAll' => ['api_broker/OfficeOrderLog/selectReportAll', ['method' => 'get|post']], 'selectReportAll' => ['api_broker/OfficeOrderLog/selectReportAll', ['method' => 'get|post']],
......
...@@ -48,6 +48,9 @@ class Reptile extends Basic ...@@ -48,6 +48,9 @@ class Reptile extends Basic
$stop_url = "106.12.11.187:9899"; $stop_url = "106.12.11.187:9899";
// $url = "https://www.haozu.com/sh/house-list/o2"; // $url = "https://www.haozu.com/sh/house-list/o2";
$url = "https://www.baidu.com"; $url = "https://www.baidu.com";
$result = $this->service_->getHaoZu( $url);
dump($result);
echo "--------";
$result = $this->service_->getNewCurl( $url); $result = $this->service_->getNewCurl( $url);
dump($result); dump($result);
} }
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace app\search\service; namespace app\search\service;
use app\chat\utils\CurlUtil; use app\chat\utils\CurlUtil;
use Curl\Curl;
/** /**
...@@ -14,7 +15,7 @@ use app\chat\utils\CurlUtil; ...@@ -14,7 +15,7 @@ use app\chat\utils\CurlUtil;
class ReptileService class ReptileService
{ {
/* public function getHaoZu($url) /* public function getHaoZu($url)
{ {
$curl = new CurlUtil(); $curl = new CurlUtil();
$curl->headers = [ $curl->headers = [
...@@ -26,7 +27,8 @@ class ReptileService ...@@ -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" "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 = [ $curl->options = [
"CURLOPT_PROXY" => "106.12.132.190:46432", "CURLOPT_PROXY" => "182.91.218.200",
"CURLOPT_PROXYPORT" => "27353",
"CURLOPT_SSL_VERIFYPEER" => 0, "CURLOPT_SSL_VERIFYPEER" => 0,
"CURLOPT_SSL_VERIFYHOST" => 2, "CURLOPT_SSL_VERIFYHOST" => 2,
]; ];
...@@ -35,20 +37,23 @@ class ReptileService ...@@ -35,20 +37,23 @@ class ReptileService
}*/ }*/
public function getNewCurl($url) public function getNewCurl($url)
{ {
$curl = new \Curl\Curl();exit; $curl = new Curl();
$curl->setOpt("CURLOPT_SSL_VERIFYPEER",false); $curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$curl->setOpt("CURLOPT_SSL_VERIFYHOST",false); $curl->setOpt(CURLOPT_SSL_VERIFYHOST, false);
//$curl->setHeader("Cache-Control",'no-cache'); //$curl->setOpt(CURLOPT_PROXY, "139.159.136.149:50838");
$curl->setOpt("CURLOPT_PROXY","27.204.127.137:18475"); $curl->setOpt(CURLOPT_PROXY, "182.91.218.200"); //代理服务器地址
$curl->setOpt("CURLOPT_PEFERER","http://proxy.mimvp.com/fetch.php"); $curl->setOpt( CURLOPT_PROXYPORT, 27353); //代理服务器端口
//$curl->setOpt( CURLOPT_PROXYTYPE, CURLPROXY_HTTPS);
// $curl->setOpt(CURLOPT_REFERER, 1000);
$headers = [ $headers = [
"Accept" => "application/json", "Accept" => "application/json",
"Content-Type" => "application/json;charset=utf-8", "Content-Type" => "application/json;charset=utf-8",
"Accept-Language:zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4", "Accept-Language:zh-CN,zh;q=0.8,en;q=0.6,ja;q=0.4",
"Connection" => "close", "Connection" => "close",
"Cache-Control" =>'max-age=0', "Referer:http://proxy.mimvp.com/fetch.php",
"Accept-Encoding"=>'gzip,deflate' "Cache-Control" => 'max-age=0',
]; "Accept-Encoding" => 'gzip,deflate'
];
$curl->setHeaders($headers); $curl->setHeaders($headers);
$response = $curl->get($url); $response = $curl->get($url);
return $response; return $response;
......
...@@ -28,4 +28,6 @@ return array( ...@@ -28,4 +28,6 @@ return array(
'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'), 'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
'Endroid\\QrCode\\' => array($vendorDir . '/endroid/qrcode/src'), 'Endroid\\QrCode\\' => array($vendorDir . '/endroid/qrcode/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'), '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