From 60f3480aa0e0282220323ef76edc67998c21618e Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Mon, 19 Dec 2022 14:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20Module=20Export=20?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Module.php b/app/Models/Module.php index e6306af..252aabc 100644 --- a/app/Models/Module.php +++ b/app/Models/Module.php @@ -129,13 +129,13 @@ public function moduleRequest($method, $path, $requests): array { $module_id = auth('module')->id(); - $this->http()->withHeaders([ + $http = $this->http()->withHeaders([ 'X-Module' => $module_id ]); $requests['module_id'] = $module_id; - $response = $this->http()->{$method}("exports/{$path}", $requests); + $response = $http->{$method}("exports/{$path}", $requests); return $this->getResponse($response); }