|
|
@@ -41,46 +41,47 @@ func GetStatus(c *gin.Context) {
|
|
|
cs := console_setting.GetConsoleSetting()
|
|
|
|
|
|
data := gin.H{
|
|
|
- "version": common.Version,
|
|
|
- "start_time": common.StartTime,
|
|
|
- "email_verification": common.EmailVerificationEnabled,
|
|
|
- "github_oauth": common.GitHubOAuthEnabled,
|
|
|
- "github_client_id": common.GitHubClientId,
|
|
|
- "linuxdo_oauth": common.LinuxDOOAuthEnabled,
|
|
|
- "linuxdo_client_id": common.LinuxDOClientId,
|
|
|
- "telegram_oauth": common.TelegramOAuthEnabled,
|
|
|
- "telegram_bot_name": common.TelegramBotName,
|
|
|
- "system_name": common.SystemName,
|
|
|
- "logo": common.Logo,
|
|
|
- "footer_html": common.Footer,
|
|
|
- "wechat_qrcode": common.WeChatAccountQRCodeImageURL,
|
|
|
- "wechat_login": common.WeChatAuthEnabled,
|
|
|
- "server_address": setting.ServerAddress,
|
|
|
- "price": setting.Price,
|
|
|
- "stripe_unit_price": setting.StripeUnitPrice,
|
|
|
- "min_topup": setting.MinTopUp,
|
|
|
- "stripe_min_topup": setting.StripeMinTopUp,
|
|
|
- "turnstile_check": common.TurnstileCheckEnabled,
|
|
|
- "turnstile_site_key": common.TurnstileSiteKey,
|
|
|
- "top_up_link": common.TopUpLink,
|
|
|
- "docs_link": operation_setting.GetGeneralSetting().DocsLink,
|
|
|
- "quota_per_unit": common.QuotaPerUnit,
|
|
|
- "display_in_currency": common.DisplayInCurrencyEnabled,
|
|
|
- "enable_batch_update": common.BatchUpdateEnabled,
|
|
|
- "enable_drawing": common.DrawingEnabled,
|
|
|
- "enable_task": common.TaskEnabled,
|
|
|
- "enable_data_export": common.DataExportEnabled,
|
|
|
- "data_export_default_time": common.DataExportDefaultTime,
|
|
|
- "default_collapse_sidebar": common.DefaultCollapseSidebar,
|
|
|
- "enable_online_topup": setting.PayAddress != "" && setting.EpayId != "" && setting.EpayKey != "",
|
|
|
- "enable_stripe_topup": setting.StripeApiSecret != "" && setting.StripeWebhookSecret != "" && setting.StripePriceId != "",
|
|
|
- "mj_notify_enabled": setting.MjNotifyEnabled,
|
|
|
- "chats": setting.Chats,
|
|
|
- "demo_site_enabled": operation_setting.DemoSiteEnabled,
|
|
|
- "self_use_mode_enabled": operation_setting.SelfUseModeEnabled,
|
|
|
- "default_use_auto_group": setting.DefaultUseAutoGroup,
|
|
|
- "pay_methods": setting.PayMethods,
|
|
|
- "usd_exchange_rate": setting.USDExchangeRate,
|
|
|
+ "version": common.Version,
|
|
|
+ "start_time": common.StartTime,
|
|
|
+ "email_verification": common.EmailVerificationEnabled,
|
|
|
+ "github_oauth": common.GitHubOAuthEnabled,
|
|
|
+ "github_client_id": common.GitHubClientId,
|
|
|
+ "linuxdo_oauth": common.LinuxDOOAuthEnabled,
|
|
|
+ "linuxdo_client_id": common.LinuxDOClientId,
|
|
|
+ "linuxdo_minimum_trust_level": common.LinuxDOMinimumTrustLevel,
|
|
|
+ "telegram_oauth": common.TelegramOAuthEnabled,
|
|
|
+ "telegram_bot_name": common.TelegramBotName,
|
|
|
+ "system_name": common.SystemName,
|
|
|
+ "logo": common.Logo,
|
|
|
+ "footer_html": common.Footer,
|
|
|
+ "wechat_qrcode": common.WeChatAccountQRCodeImageURL,
|
|
|
+ "wechat_login": common.WeChatAuthEnabled,
|
|
|
+ "server_address": setting.ServerAddress,
|
|
|
+ "price": setting.Price,
|
|
|
+ "stripe_unit_price": setting.StripeUnitPrice,
|
|
|
+ "min_topup": setting.MinTopUp,
|
|
|
+ "stripe_min_topup": setting.StripeMinTopUp,
|
|
|
+ "turnstile_check": common.TurnstileCheckEnabled,
|
|
|
+ "turnstile_site_key": common.TurnstileSiteKey,
|
|
|
+ "top_up_link": common.TopUpLink,
|
|
|
+ "docs_link": operation_setting.GetGeneralSetting().DocsLink,
|
|
|
+ "quota_per_unit": common.QuotaPerUnit,
|
|
|
+ "display_in_currency": common.DisplayInCurrencyEnabled,
|
|
|
+ "enable_batch_update": common.BatchUpdateEnabled,
|
|
|
+ "enable_drawing": common.DrawingEnabled,
|
|
|
+ "enable_task": common.TaskEnabled,
|
|
|
+ "enable_data_export": common.DataExportEnabled,
|
|
|
+ "data_export_default_time": common.DataExportDefaultTime,
|
|
|
+ "default_collapse_sidebar": common.DefaultCollapseSidebar,
|
|
|
+ "enable_online_topup": setting.PayAddress != "" && setting.EpayId != "" && setting.EpayKey != "",
|
|
|
+ "enable_stripe_topup": setting.StripeApiSecret != "" && setting.StripeWebhookSecret != "" && setting.StripePriceId != "",
|
|
|
+ "mj_notify_enabled": setting.MjNotifyEnabled,
|
|
|
+ "chats": setting.Chats,
|
|
|
+ "demo_site_enabled": operation_setting.DemoSiteEnabled,
|
|
|
+ "self_use_mode_enabled": operation_setting.SelfUseModeEnabled,
|
|
|
+ "default_use_auto_group": setting.DefaultUseAutoGroup,
|
|
|
+ "pay_methods": setting.PayMethods,
|
|
|
+ "usd_exchange_rate": setting.USDExchangeRate,
|
|
|
|
|
|
// 面板启用开关
|
|
|
"api_info_enabled": cs.ApiInfoEnabled,
|