Wang Chen vor 4 Jahren
Ursprung
Commit
5ce66440ce
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      app/Modules/Report/Services/ReportService.php

+ 3 - 2
app/Modules/Report/Services/ReportService.php

@@ -118,7 +118,8 @@ class ReportService
         $client = new Client(['timeout' => 3, 'verify' => false]);
         $client = new Client(['timeout' => 3, 'verify' => false]);
 
 
         // 执行上报
         // 执行上报
-        $result      = $client->post(env('REPORT_URI') . $uri, [
+        $url = env('REPORT_URI') . $uri;
+        $result      = $client->post($url, [
             'headers' => [
             'headers' => [
                 'x-code' => 'Mvnx1Yr3O8i!TS5u'
                 'x-code' => 'Mvnx1Yr3O8i!TS5u'
             ],
             ],
@@ -126,7 +127,7 @@ class ReportService
         ]);
         ]);
         $contentJson = $result->getBody()->getContents();
         $contentJson = $result->getBody()->getContents();
         $contentArr  = json_decode($contentJson, true);
         $contentArr  = json_decode($contentJson, true);
-        myLog('report')->info($uri, compact('data', 'contentArr'));
+        myLog('report')->info($uri, compact('url', 'data', 'contentArr'));
 
 
         return $contentArr;
         return $contentArr;
     }
     }