feat: add demo site configuration flag

- Introduce `DemoSiteEnabled` variable in operation settings
- Provide a configurable flag to enable/disable demo site functionality
This commit is contained in:
1808837298@qq.com
2025-02-04 14:15:01 +08:00
parent 187c336121
commit a0fe527047
5 changed files with 26 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ func GetStatus(c *gin.Context) {
"enable_online_topup": setting.PayAddress != "" && setting.EpayId != "" && setting.EpayKey != "",
"mj_notify_enabled": setting.MjNotifyEnabled,
"chats": setting.Chats,
"demo_site_enabled": setting.DemoSiteEnabled,
},
})
return