移除 安全检查

This commit is contained in:
iVampireSP.com 2023-01-20 15:14:41 +08:00
parent cd75c69dc3
commit c146cbce21
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -82,7 +82,7 @@ public function http(): PendingRequest
private function getResponse(Response $response): array private function getResponse(Response $response): array
{ {
$module_token = $response->header('x-module-api-token'); // $module_token = $response->header('x-module-api-token');
$success = true; $success = true;
$json = $response->json(); $json = $response->json();
@ -93,12 +93,12 @@ private function getResponse(Response $response): array
$success = false; $success = false;
// 防止误删除 // 防止误删除
if ($module_token !== $this->api_token) { // if ($module_token !== $this->api_token) {
$this->status = 'maintenance'; // $this->status = 'maintenance';
$this->save(); // $this->save();
//
$status = 401; // $status = 401;
} // }
} }
return [ return [