ctinyle 3 months ago
parent
commit
0d4e081531
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/Http/Controllers/SourceController.php

+ 3 - 2
app/Http/Controllers/SourceController.php

@@ -15,13 +15,14 @@ class SourceController extends BaseController
15
     public function getSource()
15
     public function getSource()
16
     {
16
     {
17
         $client = new Client();
17
         $client = new Client();
18
+        $time = time();
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';
19
         $header = [
20
         $header = [
20
             '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
             '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
             'Referer' => 'https://jzsc.mohurd.gov.cn/data/company',
22
             'Referer' => 'https://jzsc.mohurd.gov.cn/data/company',
22
-            'Cookie' => 'Hm_lvt_b1b4b9ea61b6f1627192160766a9c55c=1722159155; HMACCOUNT=770873722DFFDFD2; Hm_lpvt_b1b4b9ea61b6f1627192160766a9c55c=1722160543'
23
+            'Cookie' => 'Hm_lvt_b1b4b9ea61b6f1627192160766a9c55c=1722159155; HMACCOUNT=770873722DFFDFD2; Hm_lpvt_b1b4b9ea61b6f1627192160766a9c55c='.$time,
24
+            'Accesstoken' => 'jkFXxgu9TcpocIyCKmJ+tfpxe/45B9dbWMUXhdY7vLWkw4PNGtQkV0GzhDucU6n4hpUUKvcMtoMqfGfwdLCb8g=='
23
         ];
25
         ];
24
-        dd($url, $header);
25
         $params = [
26
         $params = [
26
             'complexname' => '成都翔威建筑工程有限公司',
27
             'complexname' => '成都翔威建筑工程有限公司',
27
             'pg' => 0,
28
             'pg' => 0,