改进 删除
This commit is contained in:
parent
34f1b47ccc
commit
7afc2ce9c4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user