优化代码

This commit is contained in:
iVampireSP.com 2023-01-13 22:14:34 +08:00
parent b7019640b8
commit 0ad8e5118d
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 7 additions and 8 deletions

View File

@ -153,13 +153,6 @@ public function safeDelete(): bool
return true;
}
public function updateOrDelete(): bool
{
dispatch(new UpdateOrDeleteHostJob($this));
return true;
}
public function cost($amount = null, $auto = true): bool
{
$this->load('user');
@ -299,4 +292,11 @@ public function addLog(float|null $amount = 0): bool
return true;
}
public function updateOrDelete(): bool
{
dispatch(new UpdateOrDeleteHostJob($this));
return true;
}
}

View File

@ -2,7 +2,6 @@
namespace App\Notifications\Channels;
use App\Console\Commands\Cluster\Log;
use App\Events\Users;
use App\Models\User;
use Illuminate\Bus\Queueable;