enhance: remove icp footer

pull/1324/head
HFO4 2 years ago
parent 2a3759c315
commit 04b0b87082

@ -9,7 +9,6 @@ import (
var defaultSettings = []Setting{
{Name: "siteURL", Value: `http://localhost`, Type: "basic"},
{Name: "siteName", Value: `Cloudreve`, Type: "basic"},
{Name: "siteICPId", Value: ``, Type: "basic"},
{Name: "register_enabled", Value: `1`, Type: "register"},
{Name: "default_group", Value: `2`, Type: "register"},
{Name: "siteKeywords", Value: `网盘,网盘`, Type: "basic"},

@ -8,7 +8,6 @@ import (
// SiteConfig 站点全局设置序列
type SiteConfig struct {
SiteName string `json:"title"`
SiteICPId string `json:"siteICPId"`
LoginCaptcha bool `json:"loginCaptcha"`
RegCaptcha bool `json:"regCaptcha"`
ForgetCaptcha bool `json:"forgetCaptcha"`
@ -70,7 +69,6 @@ func BuildSiteConfig(settings map[string]string, user *model.User) Response {
res := Response{
Data: SiteConfig{
SiteName: checkSettingValue(settings, "siteName"),
SiteICPId: checkSettingValue(settings, "siteICPId"),
LoginCaptcha: model.IsTrueVal(checkSettingValue(settings, "login_captcha")),
RegCaptcha: model.IsTrueVal(checkSettingValue(settings, "reg_captcha")),
ForgetCaptcha: model.IsTrueVal(checkSettingValue(settings, "forget_captcha")),

@ -13,7 +13,6 @@ import (
func SiteConfig(c *gin.Context) {
siteConfig := model.GetSettingByNames(
"siteName",
"siteICPId",
"login_captcha",
"reg_captcha",
"email_active",

Loading…
Cancel
Save