移除 不需要的 reason
This commit is contained in:
parent
20610b1c37
commit
7dd72dcb6e
@ -44,14 +44,11 @@ public function handle()
|
|||||||
|
|
||||||
$user_id = $this->argument('user_id');
|
$user_id = $this->argument('user_id');
|
||||||
|
|
||||||
$reason = $this->argument('reason');
|
|
||||||
|
|
||||||
$user = User::find($user_id);
|
$user = User::find($user_id);
|
||||||
|
|
||||||
$this->info('解除封禁: ' . $user->name);
|
$this->info('解除封禁: ' . $user->name);
|
||||||
|
|
||||||
$user->banned_at = null;
|
$user->banned_at = null;
|
||||||
$user->banned_reason = $reason;
|
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
$this->info('用户已解除封禁。');
|
$this->info('用户已解除封禁。');
|
||||||
|
Loading…
Reference in New Issue
Block a user