代码优化
This commit is contained in:
@@ -38,7 +38,7 @@ class SwitchFriendsCommand extends Command
|
||||
|
||||
$toSwitch = [];
|
||||
foreach ($friends as $friend) {
|
||||
if (isset($friend['time']) && $friend['time'] > $now) {
|
||||
if (isset($friend['time']) && $friend['time'] < $now) {
|
||||
$toSwitch[] = $friend;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user