优化代码
This commit is contained in:
parent
b7019640b8
commit
0ad8e5118d
@ -153,13 +153,6 @@ public function safeDelete(): bool
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateOrDelete(): bool
|
|
||||||
{
|
|
||||||
dispatch(new UpdateOrDeleteHostJob($this));
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function cost($amount = null, $auto = true): bool
|
public function cost($amount = null, $auto = true): bool
|
||||||
{
|
{
|
||||||
$this->load('user');
|
$this->load('user');
|
||||||
@ -299,4 +292,11 @@ public function addLog(float|null $amount = 0): bool
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function updateOrDelete(): bool
|
||||||
|
{
|
||||||
|
dispatch(new UpdateOrDeleteHostJob($this));
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace App\Notifications\Channels;
|
namespace App\Notifications\Channels;
|
||||||
|
|
||||||
use App\Console\Commands\Cluster\Log;
|
|
||||||
use App\Events\Users;
|
use App\Events\Users;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
|
Loading…
Reference in New Issue
Block a user