Wang Chen пре 4 година
родитељ
комит
5ce66440ce
1 измењених фајлова са 3 додато и 2 уклоњено
  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]);
 
         // 执行上报
-        $result      = $client->post(env('REPORT_URI') . $uri, [
+        $url = env('REPORT_URI') . $uri;
+        $result      = $client->post($url, [
             'headers' => [
                 'x-code' => 'Mvnx1Yr3O8i!TS5u'
             ],
@@ -126,7 +127,7 @@ class ReportService
         ]);
         $contentJson = $result->getBody()->getContents();
         $contentArr  = json_decode($contentJson, true);
-        myLog('report')->info($uri, compact('data', 'contentArr'));
+        myLog('report')->info($uri, compact('url', 'data', 'contentArr'));
 
         return $contentArr;
     }