|
|
@ -31,7 +31,6 @@ 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"`
|
|
|
|
CapKeyID string `json:"captcha_cap_key_id,omitempty"`
|
|
|
|
CapKeyID string `json:"captcha_cap_key_id,omitempty"`
|
|
|
|
CapVersion string `json:"captcha_cap_version,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"`
|
|
|
@ -139,7 +138,6 @@ func (s *GetSettingService) GetSiteConfig(c *gin.Context) (*SiteConfig, error) {
|
|
|
|
ReCaptchaKey: reCaptcha.Key,
|
|
|
|
ReCaptchaKey: reCaptcha.Key,
|
|
|
|
CapInstanceURL: capCaptcha.InstanceURL,
|
|
|
|
CapInstanceURL: capCaptcha.InstanceURL,
|
|
|
|
CapKeyID: capCaptcha.SiteKey,
|
|
|
|
CapKeyID: capCaptcha.SiteKey,
|
|
|
|
CapVersion: capCaptcha.Version,
|
|
|
|
|
|
|
|
AppPromotion: appSetting.Promotion,
|
|
|
|
AppPromotion: appSetting.Promotion,
|
|
|
|
}, nil
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|