ctinyle 3 kuukautta sitten
vanhempi
commit
0d4e081531
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      app/Http/Controllers/SourceController.php

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

@@ -15,13 +15,14 @@ class SourceController extends BaseController
15 15
     public function getSource()
16 16
     {
17 17
         $client = new Client();
18
+        $time = time();
18 19
         $url = 'https://jzsc.mohurd.gov.cn/APi/webApi/dataservice/query/comp/list';
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
             '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 26
         $params = [
26 27
             'complexname' => '成都翔威建筑工程有限公司',
27 28
             'pg' => 0,