This commit is contained in:
2026-06-23 13:53:55 +08:00
parent c336f176e6
commit 331e49ea29
13 changed files with 557 additions and 28 deletions

View File

@@ -15,6 +15,8 @@ func SettingsSaveEndpoint(w http.ResponseWriter, r *http.Request) {
OriginUrl string `json:"originUrl"`
PreviewBase string `json:"previewBase"`
SkipExistsCheck bool `json:"skipExistsCheck"`
WpUsername string `json:"wpUsername"`
WpPassword string `json:"wpPassword"`
} `json:"plec"`
Applovin struct {
Cookie string `json:"cookie"`
@@ -40,6 +42,8 @@ func SettingsSaveEndpoint(w http.ResponseWriter, r *http.Request) {
cfg.Plec.OriginUrl = strings.TrimSpace(req.Plec.OriginUrl)
cfg.Plec.PreviewBase = strings.TrimSpace(req.Plec.PreviewBase)
cfg.Plec.SkipExistsCheck = req.Plec.SkipExistsCheck
cfg.Plec.WpUsername = strings.TrimSpace(req.Plec.WpUsername)
cfg.Plec.WpPassword = req.Plec.WpPassword
cfg.Applovin.Cookie = strings.TrimSpace(req.Applovin.Cookie)
cfg.Applovin.DelayMs = req.Applovin.DelayMs
cfg.Applovin.RandomizeUserAgent = req.Applovin.RandomizeUserAgent