改进 Module Export 请求
This commit is contained in:
parent
504dd963bd
commit
60f3480aa0
@ -129,13 +129,13 @@ public function moduleRequest($method, $path, $requests): array
|
|||||||
{
|
{
|
||||||
$module_id = auth('module')->id();
|
$module_id = auth('module')->id();
|
||||||
|
|
||||||
$this->http()->withHeaders([
|
$http = $this->http()->withHeaders([
|
||||||
'X-Module' => $module_id
|
'X-Module' => $module_id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$requests['module_id'] = $module_id;
|
$requests['module_id'] = $module_id;
|
||||||
|
|
||||||
$response = $this->http()->{$method}("exports/{$path}", $requests);
|
$response = $http->{$method}("exports/{$path}", $requests);
|
||||||
|
|
||||||
return $this->getResponse($response);
|
return $this->getResponse($response);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user