From c146cbce21a6bd9a4f0d7b090a4ffcb46a71429f Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Fri, 20 Jan 2023 15:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Module.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Models/Module.php b/app/Models/Module.php index 6f5eeed..2e64917 100644 --- a/app/Models/Module.php +++ b/app/Models/Module.php @@ -82,7 +82,7 @@ public function http(): PendingRequest private function getResponse(Response $response): array { - $module_token = $response->header('x-module-api-token'); + // $module_token = $response->header('x-module-api-token'); $success = true; $json = $response->json(); @@ -93,12 +93,12 @@ private function getResponse(Response $response): array $success = false; // 防止误删除 - if ($module_token !== $this->api_token) { - $this->status = 'maintenance'; - $this->save(); - - $status = 401; - } + // if ($module_token !== $this->api_token) { + // $this->status = 'maintenance'; + // $this->save(); + // + // $status = 401; + // } } return [