改进 请求 Header

This commit is contained in:
iVampireSP.com 2023-01-18 21:56:26 +08:00
parent 8a727d62f8
commit 2429efd25e
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -105,7 +105,7 @@ public function baseRequest($method, $path, $requests): array
if ($user) { if ($user) {
$this->http()->withHeaders([ $this->http()->withHeaders([
'X-User-id' => $user->id, 'X-User-Id' => $user->id,
]); ]);
$requests['user_id'] = $user->id; $requests['user_id'] = $user->id;
if ($method == 'post') { if ($method == 'post') {