fix для работы с vmangos
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Support\VMangosTime;
|
||||
use App\Support\WowData;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class GameAccountUser implements AuthenticatableContract
|
||||
{
|
||||
@@ -19,8 +19,8 @@ class GameAccountUser implements AuthenticatableContract
|
||||
public readonly ?string $joinedAt,
|
||||
public readonly string $saltHex,
|
||||
public readonly string $verifierHex,
|
||||
) {
|
||||
}
|
||||
public readonly ?int $webUserId = null,
|
||||
) {}
|
||||
|
||||
public function getAuthIdentifierName(): string
|
||||
{
|
||||
@@ -47,9 +47,7 @@ class GameAccountUser implements AuthenticatableContract
|
||||
return '';
|
||||
}
|
||||
|
||||
public function setRememberToken($value): void
|
||||
{
|
||||
}
|
||||
public function setRememberToken($value): void {}
|
||||
|
||||
public function getRememberTokenName(): string
|
||||
{
|
||||
@@ -78,8 +76,6 @@ class GameAccountUser implements AuthenticatableContract
|
||||
|
||||
private function formatDate(?string $value): string
|
||||
{
|
||||
return $value && ! str_starts_with($value, '0000-00-00')
|
||||
? Carbon::parse($value)->format('d.m.Y H:i')
|
||||
: '—';
|
||||
return VMangosTime::format($value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user