|
@@ -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;
|
|
}
|
|
}
|