改进 删除

This commit is contained in:
iVampireSP.com 2022-09-03 18:55:01 +08:00
parent 34f1b47ccc
commit 7afc2ce9c4
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -58,7 +58,11 @@ public function handle()
case 'delete':
$response = $http->delete('hosts/' . $host->id);
return;
if ($response->status() === 404) {
$host->delete();
}
return 0;
// if response code is 404
// if ($response->successful() || $response->failed()) {
// $host->delete();