Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
8a99c682
Commit
8a99c682
authored
Jun 12, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3da4df5c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
route.php
application/route.php
+1
-1
Reptile.php
application/search/controller/Reptile.php
+3
-0
ReptileService.php
application/search/service/ReptileService.php
+14
-9
autoload_psr4.php
vendor/composer/autoload_psr4.php
+2
-0
No files found.
application/route.php
View file @
8a99c682
...
...
@@ -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'
]],
...
...
application/search/controller/Reptile.php
View file @
8a99c682
...
...
@@ -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
);
}
...
...
application/search/service/ReptileService.php
View file @
8a99c682
...
...
@@ -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
);
...
...
vendor/composer/autoload_psr4.php
View file @
8a99c682
...
...
@@ -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'
),
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment