|
|
|
@ -22,6 +22,7 @@ type SiteConfig struct {
|
|
|
|
|
CaptchaType string `json:"captcha_type"`
|
|
|
|
|
TCaptchaCaptchaAppId string `json:"tcaptcha_captcha_app_id"`
|
|
|
|
|
RegisterEnabled bool `json:"registerEnabled"`
|
|
|
|
|
AppPromotion bool `json:"app_promotion"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type task struct {
|
|
|
|
@ -83,6 +84,7 @@ func BuildSiteConfig(settings map[string]string, user *model.User) Response {
|
|
|
|
|
CaptchaType: checkSettingValue(settings, "captcha_type"),
|
|
|
|
|
TCaptchaCaptchaAppId: checkSettingValue(settings, "captcha_TCaptcha_CaptchaAppId"),
|
|
|
|
|
RegisterEnabled: model.IsTrueVal(checkSettingValue(settings, "register_enabled")),
|
|
|
|
|
AppPromotion: model.IsTrueVal(checkSettingValue(settings, "show_app_promotion")),
|
|
|
|
|
}}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|