mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
index page add top uploader
This commit is contained in:
@@ -107,7 +107,15 @@ class User extends Authenticatable
|
||||
|
||||
public function getClassTextAttribute(): string
|
||||
{
|
||||
return self::$classes[$this->class]['text'] ?? '';
|
||||
if (!isset(self::$classes[$this->class]['text'])) {
|
||||
return '';
|
||||
}
|
||||
$classText = self::$classes[$this->class]['text'];
|
||||
$alias = Setting::get("account.{$this->class}_alias");
|
||||
if (!empty($alias)) {
|
||||
$classText .= "({$alias})";
|
||||
}
|
||||
return $classText;
|
||||
}
|
||||
|
||||
public function getDonateStatusAttribute()
|
||||
|
||||
Reference in New Issue
Block a user