移除 安全检查
This commit is contained in:
parent
cd75c69dc3
commit
c146cbce21
@ -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 [
|
||||
|
Loading…
Reference in New Issue
Block a user