|
|
@ -31,6 +31,7 @@ type SiteConfig struct {
|
|
|
|
TurnstileSiteID string `json:"turnstile_site_id,omitempty"`
|
|
|
|
TurnstileSiteID string `json:"turnstile_site_id,omitempty"`
|
|
|
|
CapInstanceURL string `json:"captcha_cap_instance_url,omitempty"`
|
|
|
|
CapInstanceURL string `json:"captcha_cap_instance_url,omitempty"`
|
|
|
|
CapSiteKey string `json:"captcha_cap_site_key,omitempty"`
|
|
|
|
CapSiteKey string `json:"captcha_cap_site_key,omitempty"`
|
|
|
|
|
|
|
|
CapAssetServer string `json:"captcha_cap_asset_server,omitempty"`
|
|
|
|
RegisterEnabled bool `json:"register_enabled,omitempty"`
|
|
|
|
RegisterEnabled bool `json:"register_enabled,omitempty"`
|
|
|
|
TosUrl string `json:"tos_url,omitempty"`
|
|
|
|
TosUrl string `json:"tos_url,omitempty"`
|
|
|
|
PrivacyPolicyUrl string `json:"privacy_policy_url,omitempty"`
|
|
|
|
PrivacyPolicyUrl string `json:"privacy_policy_url,omitempty"`
|
|
|
@ -138,6 +139,7 @@ func (s *GetSettingService) GetSiteConfig(c *gin.Context) (*SiteConfig, error) {
|
|
|
|
ReCaptchaKey: reCaptcha.Key,
|
|
|
|
ReCaptchaKey: reCaptcha.Key,
|
|
|
|
CapInstanceURL: capCaptcha.InstanceURL,
|
|
|
|
CapInstanceURL: capCaptcha.InstanceURL,
|
|
|
|
CapSiteKey: capCaptcha.SiteKey,
|
|
|
|
CapSiteKey: capCaptcha.SiteKey,
|
|
|
|
|
|
|
|
CapAssetServer: capCaptcha.AssetServer,
|
|
|
|
AppPromotion: appSetting.Promotion,
|
|
|
|
AppPromotion: appSetting.Promotion,
|
|
|
|
}, nil
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|