mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
temp invite
This commit is contained in:
@@ -64,6 +64,8 @@ class GenerateTemporaryInvite implements ShouldQueue
|
||||
return;
|
||||
}
|
||||
$idArr = explode(",", $idStr);
|
||||
$now = Carbon::now();
|
||||
$expiredAt = Carbon::now()->addDays($this->days);
|
||||
foreach ($idArr as $uid) {
|
||||
try {
|
||||
$hashArr = $toolRep->generateUniqueInviteHash([], $this->count, $this->count);
|
||||
@@ -74,8 +76,8 @@ class GenerateTemporaryInvite implements ShouldQueue
|
||||
'invitee' => '',
|
||||
'hash' => $hash,
|
||||
'valid' => 0,
|
||||
'expired_at' => Carbon::now()->addDays($this->days),
|
||||
'created_at' => Carbon::now(),
|
||||
'expired_at' => $expiredAt,
|
||||
'created_at' => $now,
|
||||
];
|
||||
}
|
||||
if (!empty($data)) {
|
||||
|
||||
Reference in New Issue
Block a user