新增: Bing 壁纸多市场获取/2000张历史/第三方图源/dislike/重下/方向修复

This commit is contained in:
lxy
2026-10-01 01:02:41 +08:00
parent bbbc32142d
commit 2036c9c89a
8 changed files with 431 additions and 68 deletions
+4
View File
@@ -68,6 +68,7 @@ type Config struct {
HideKnowledge bool `json:"hideKnowledge"`
SavedColors []SavedColor `json:"savedColors"`
BingAutoRefresh bool `json:"bingAutoRefresh"`
BingMarkets []string `json:"bingMarkets,omitempty"`
AutoStart bool `json:"autoStart"`
QWeatherKey string `json:"qweatherKey,omitempty"`
TianapiKey string `json:"tianapiKey,omitempty"`
@@ -116,6 +117,9 @@ func loadConfig() *Config {
if cfg.Layout == "" {
cfg.Layout = LayoutSingle
}
if len(cfg.BingMarkets) == 0 {
cfg.BingMarkets = []string{"zh-CN", "en-US", "ja-JP", "de-DE", "fr-FR", "en-GB", "ko-KR", "ru-RU", "pt-BR", "es-ES"}
}
return &cfg
}