mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
8a99e58fe1
commit
d84bf16082
@ -41,10 +41,10 @@ class CheckExpire extends Command
|
||||
{
|
||||
$user = User::all();
|
||||
foreach ($user as $item) {
|
||||
if ($user->expired_at < time()) {
|
||||
$user->enable = 0;
|
||||
if ($item->expired_at < time()) {
|
||||
$item->enable = 0;
|
||||
} else {
|
||||
$user->enable = 1;
|
||||
$item->enable = 1;
|
||||
}
|
||||
$item->save();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user