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