api add middleware: CheckSiteStatus

This commit is contained in:
xiaomlove
2026-05-31 03:35:13 +07:00
parent f823dc191a
commit e4cdb26c2f
7 changed files with 50 additions and 1 deletions
+5
View File
@@ -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';
}
}