6
0
Fork 0

调整启用用户

release
vine_liutk 2022-01-07 13:41:36 +08:00
parent 6067fe5e9e
commit d82431cdbe
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class User extends Model implements AuthorizableContract, AuthenticatableContrac
{ {
if ($this->status !== static::STATUS_ACTIVE) { if ($this->status !== static::STATUS_ACTIVE) {
return $this->update([ return $this->update([
'status' => static::STATUS_DISABLED, 'status' => static::STATUS_ACTIVE,
'status_remark' => null, 'status_remark' => null,
]); ]);
} }