|
@@ -21,7 +21,6 @@ class SourceController extends BaseController
|
21
|
21
|
'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
|
22
|
22
|
'v' => 231012
|
23
|
23
|
];
|
24
|
|
- echo 22222222222;
|
25
|
24
|
// $params = [
|
26
|
25
|
// 'complexname' => '成都翔威建筑工程有限公司',
|
27
|
26
|
// 'pg' => 0,
|
|
@@ -30,7 +29,7 @@ class SourceController extends BaseController
|
30
|
29
|
// ];
|
31
|
30
|
try {
|
32
|
31
|
$res = $client->request('GET', $url, [
|
33
|
|
- 'header' => $header
|
|
32
|
+ 'headers' => ['User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'],
|
34
|
33
|
]);
|
35
|
34
|
} catch (\Exception $e) {
|
36
|
35
|
dd($e);
|