mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-06-16 17:37:30 +08:00
api add middleware: CheckSiteStatus
This commit is contained in:
@@ -339,4 +339,9 @@ class Setting extends NexusModel
|
||||
{
|
||||
return (int)self::get("bonus.self_enable", BonusLogs::DEFAULT_BONUS_SELF_ENABLE);
|
||||
}
|
||||
|
||||
public static function getIsSiteOnline(): bool
|
||||
{
|
||||
return self::get('main.site_online') == 'yes';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user