mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 10:27:27 +08:00
enable login notify
This commit is contained in:
@@ -32,6 +32,10 @@ class UserLoginNotify extends Command
|
||||
$thisId = $this->option('this_id');
|
||||
$lastId = $this->option('last_id');
|
||||
$this->info("thisId: $thisId, lastId: $lastId");
|
||||
if (!$thisId || !$lastId) {
|
||||
$this->error("require option --this_id=? and --last_id=?");
|
||||
return Command::FAILURE;
|
||||
}
|
||||
SendLoginNotify::dispatch($thisId, $lastId);
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user