改进 header 里面增加 user_id
This commit is contained in:
parent
f9d123326c
commit
84f5da51a1
@ -106,6 +106,10 @@ public function request($method, $path, $requests): array
|
||||
|
||||
$http = Http::module($this->api_token, $this->url);
|
||||
|
||||
$http->withHeaders([
|
||||
'X-User-id' => $user->id,
|
||||
]);
|
||||
|
||||
$requests['user_id'] = $user->id;
|
||||
|
||||
if ($method == 'post') {
|
||||
|
Loading…
Reference in New Issue
Block a user