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 [