|
|
|
|
@ -59,7 +59,8 @@ type SiteConfig struct {
|
|
|
|
|
ThumbExts []string `json:"thumb_exts,omitempty"`
|
|
|
|
|
|
|
|
|
|
// App settings
|
|
|
|
|
AppPromotion bool `json:"app_promotion,omitempty"`
|
|
|
|
|
AppPromotion bool `json:"app_promotion,omitempty"`
|
|
|
|
|
DesktopAppPromotion bool `json:"desktop_app_promotion,omitempty"`
|
|
|
|
|
|
|
|
|
|
//EmailActive bool `json:"emailActive"`
|
|
|
|
|
//QQLogin bool `json:"QQLogin"`
|
|
|
|
|
@ -128,7 +129,8 @@ func (s *GetSettingService) GetSiteConfig(c *gin.Context) (*SiteConfig, error) {
|
|
|
|
|
case "app":
|
|
|
|
|
appSetting := settings.AppSetting(c)
|
|
|
|
|
return &SiteConfig{
|
|
|
|
|
AppPromotion: appSetting.Promotion,
|
|
|
|
|
AppPromotion: appSetting.Promotion,
|
|
|
|
|
DesktopAppPromotion: appSetting.DesktopPromotion,
|
|
|
|
|
}, nil
|
|
|
|
|
case "thumb":
|
|
|
|
|
// Return supported thumbnail extensions from enabled generators.
|
|
|
|
|
|