改进 UA 透传

This commit is contained in:
iVampireSP.com 2023-03-03 19:06:21 +08:00
parent d5430494fc
commit 86195ca628
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -132,6 +132,7 @@ public function baseRequest($method, $path, $requests = [], $files = []): array
if ($user) { if ($user) {
$http = $http->withHeaders([ $http = $http->withHeaders([
'X-User-Id' => $user->id, 'X-User-Id' => $user->id,
'User-Agent' => request()->headers->get('User-Agent', 'unknown'),
]); ]);
// $requests['user_id'] = $user->id; // $requests['user_id'] = $user->id;