ctinyle 3 月之前
父節點
當前提交
bbb86df01c
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      app/Http/Controllers/SourceController.php

+ 9 - 9
app/Http/Controllers/SourceController.php

@@ -15,21 +15,21 @@ class SourceController extends BaseController
15 15
     public function getSource()
16 16
     {
17 17
         $client = new Client();
18
-        $url = 'https://jzsc.mohurd.gov.cn/APi/webApi/dataservice/query/comp/list';
18
+//        $url = 'https://jzsc.mohurd.gov.cn/APi/webApi/dataservice/query/comp/list';
19
+        $url = 'https://jzsc.mohurd.gov.cn/APi/webApi/dataservice/query/comp/list?complexname=%E5%9B%9B%E5%B7%9D%E9%A1%BA%E8%B5%90%E5%BB%BA%E7%AD%91%E5%8A%B3%E5%8A%A1%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&pg=0&pgsz=15&total=0';
19 20
         $header = [
20 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',
21 22
             'v' => 231012
22 23
         ];
23
-        $params = [
24
-            'complexname' => '成都翔威建筑工程有限公司',
25
-            'pg' => 0,
26
-            'pgsz' => 15,
27
-            'total' => 0
28
-        ];
24
+//        $params = [
25
+//            'complexname' => '成都翔威建筑工程有限公司',
26
+//            'pg' => 0,
27
+//            'pgsz' => 15,
28
+//            'total' => 0
29
+//        ];
29 30
         try {
30 31
             $res = $client->request('GET', $url, [
31
-                'query' => $params,
32
-                'headers' => $header
32
+                'header' => $header
33 33
             ]);
34 34
         } catch (\Exception $e) {
35 35
             dd($e);